Fix build failure
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Feb 2022 22:54:57 +0000 (23:54 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Feb 2022 22:54:57 +0000 (23:54 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 0bfa2b221c55ebc79e810b5a2845c5bcde4b7fd8..6e306c04afbd0d1107eecfdda6c6353c0ba859b7 100644 (file)
@@ -107,7 +107,7 @@ export default abstract class OCPPRequestService {
         messageType === MessageType.CALL_MESSAGE && this.chargingStation.requests.delete(messageId);
       });
     } else {
-      throw new OCPPError(ErrorType.SECURITY_ERROR, 'Cannot send command payload if the charging station is in unknown state', commandName, { status: this.chargingStation?.bootNotificationResponse?.status });
+      throw new OCPPError(ErrorType.SECURITY_ERROR, 'Cannot send command payload if the charging station is in unknown state', commandName);
     }
   }