fix: fix error handling default options definition
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 64cb637b02f80782bbfb96a69bbfa723f5fa18d5..def985c0447a4a6df065b32a8af94281d337c6e8 100644 (file)
@@ -2449,9 +2449,7 @@ export class ChargingStation extends EventEmitter {
       )
     } else if (this.stationInfo?.autoReconnectMaxRetries !== -1) {
       logger.error(
-        `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${
-          this.wsConnectionRetryCount
-        }) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries})`
+        `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${this.wsConnectionRetryCount.toString()}) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries?.toString()})`
       )
     }
   }