From: Jérôme Benoit Date: Wed, 22 Nov 2023 09:15:02 +0000 (+0100) Subject: refactor: add error name in worker set worker startup error reporting X-Git-Tag: v1.2.26~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7cd4006c7ba46b245fe2e14e9ad336f6a8a0d7f0;p=e-mobility-charging-stations-simulator.git refactor: add error name in worker set worker startup error reporting Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index a0adf805..955ce933 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -42,6 +42,7 @@ class ChargingStationWorker extends AsyncResource { parentPort?.postMessage({ event: WorkerMessageEvents.startWorkerElementError, data: { + name: (error as Error).name, message: (error as Error).message, stack: (error as Error).stack, },