X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=a3b78ca63ec8e40d44a07c7a12f9689ed38eee63;hb=d58b442097da31f8b974d51aef63c64470d9ab48;hp=2a6a8c1884898d9d3c123cd071cda6f88c9befe0;hpb=b9da1bc288a2a6ffccfbca6cd19aa195bc6ccfbf;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 2a6a8c18..a3b78ca6 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -23,7 +23,7 @@ import { type ResponseCallback, type ResponseType, } from '../../types'; -import { Constants, ErrorUtils, Utils, logger } from '../../utils'; +import { Constants, Utils, handleSendMessageError, logger } from '../../utils'; const moduleName = 'OCPPRequestService'; @@ -133,7 +133,7 @@ export abstract class OCPPRequestService { commandName ); } catch (error) { - ErrorUtils.handleSendMessageError(chargingStation, commandName, error as Error, { + handleSendMessageError(chargingStation, commandName, error as Error, { throwError: true, }); } @@ -155,7 +155,7 @@ export abstract class OCPPRequestService { commandName ); } catch (error) { - ErrorUtils.handleSendMessageError(chargingStation, commandName, error as Error); + handleSendMessageError(chargingStation, commandName, error as Error); } } @@ -180,7 +180,7 @@ export abstract class OCPPRequestService { params ); } catch (error) { - ErrorUtils.handleSendMessageError(chargingStation, commandName, error as Error, { + handleSendMessageError(chargingStation, commandName, error as Error, { throwError: params.throwError, }); }