Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
)
this.on(
ChargingStationWorkerMessageEvents.workerElementError,
- (msg: ChargingStationWorkerMessage<ChargingStationWorkerEventError>) => {
+ (eventError: ChargingStationWorkerEventError) => {
logger.error(
- `${this.logPrefix()} ${moduleName}.messageHandler: Error occurred while handling '${msg.data.event}' event on worker:`,
- msg.data
+ `${this.logPrefix()} ${moduleName}.messageHandler: Error occurred while handling '${eventError.event}' event on worker:`,
+ eventError
)
}
)