From: Jérôme Benoit Date: Sun, 12 Sep 2021 12:33:47 +0000 (+0200) Subject: Fix OCPP error details message default X-Git-Tag: v1.0.58~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3582e6fe2545e29b3c196e31e2b9ab7d4216bdb0;p=e-mobility-charging-stations-simulator.git Fix OCPP error details message default Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index f8956706..172a61a2 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -62,7 +62,7 @@ export default abstract class OCPPRequestService { // Buffer it this.chargingStation.addToMessageQueue(messageToSend); // Reject it - return rejectCallback(new OCPPError(commandParams?.code ?? ErrorType.GENERIC_ERROR, commandParams?.message ?? `WebSocket closed for message id '${messageId}' with content '${messageToSend}', message buffered`, commandParams.details ?? {})); + return rejectCallback(new OCPPError(commandParams?.code ?? ErrorType.GENERIC_ERROR, commandParams?.message ?? `WebSocket closed for message id '${messageId}' with content '${messageToSend}', message buffered`, commandParams?.details ?? {})); } // Response? if (messageType === MessageType.CALL_RESULT_MESSAGE) {