From: Jérôme Benoit Date: Fri, 4 Mar 2022 19:38:57 +0000 (+0100) Subject: Fix build failure X-Git-Tag: v1.1.51~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=47086c3afcec31c01f97fd302b369c30372554d5;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 db3ce5e0..2ecc32ea 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -6,6 +6,7 @@ import { ChargePointErrorCode } from '../../types/ocpp/ChargePointErrorCode'; import { ChargePointStatus } from '../../types/ocpp/ChargePointStatus'; import type ChargingStation from '../ChargingStation'; import Constants from '../../utils/Constants'; +import { EmptyObject } from '../../types/EmptyObject'; import { ErrorType } from '../../types/ocpp/ErrorType'; import { HandleErrorParams } from '../../types/Error'; import { JsonType } from '../../types/JsonType'; @@ -174,7 +175,7 @@ export default abstract class OCPPRequestService { return messageToSend; } - private handleRequestError(commandName: RequestCommand | IncomingRequestCommand, error: Error, params: HandleErrorParams = { throwError: true }): void { + private handleRequestError(commandName: RequestCommand | IncomingRequestCommand, error: Error, params: HandleErrorParams = { throwError: true }): void { logger.error(this.chargingStation.logPrefix() + ' Request command %s error: %j', commandName, error); if (params?.throwError) { throw error;