- setDefaultErrorParams(params, { throwError: false, consoleOut: false });
- logger.error(`${chargingStation.logPrefix()} Request command '${commandName}' error:`, error);
- if (params?.throwError === true) {
- throw error;
+ params = setDefaultErrorParams(params, { throwError: false, consoleOut: false })
+ logger.error(
+ `${chargingStation.logPrefix()} Send ${getMessageTypeString(messageType)} command '${commandName}' error:`,
+ error
+ )
+ if (params.throwError === true) {
+ throw error