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