From: Jérôme Benoit Date: Sun, 27 Nov 2022 10:30:22 +0000 (+0100) Subject: Refine worker exit with error message X-Git-Tag: v1.1.88~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d3d85b21c808392ead67dd1bba5a7ddc34e2ae0a;p=e-mobility-charging-stations-simulator.git Refine worker exit with error message Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerUtils.ts b/src/worker/WorkerUtils.ts index 4d6868f7..2b612351 100644 --- a/src/worker/WorkerUtils.ts +++ b/src/worker/WorkerUtils.ts @@ -7,7 +7,7 @@ export class WorkerUtils { public static defaultExitHandler = (code: number): void => { if (code !== 0) { - console.error(chalk.red(`Worker stopped with exit code ${code}`)); + console.error(chalk.red(`Worker exited with error exit code: ${code.toString()}`)); } };