From 7cd4006c7ba46b245fe2e14e9ad336f6a8a0d7f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 22 Nov 2023 10:15:02 +0100 Subject: [PATCH] refactor: add error name in worker set worker startup error reporting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStationWorker.ts | 1 + 1 file changed, 1 insertion(+) 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, }, -- 2.34.1