From: Jérôme Benoit Date: Fri, 4 Feb 2022 22:54:57 +0000 (+0100) Subject: Fix build failure X-Git-Tag: v1.1.45~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5f496df6439c1282600498a96e0d865acb119b3c;p=e-mobility-charging-stations-simulator.git Fix build failure Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 0bfa2b22..6e306c04 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -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); } }