Refine worker exit with error message
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 27 Nov 2022 10:30:22 +0000 (11:30 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 27 Nov 2022 10:30:22 +0000 (11:30 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/WorkerUtils.ts

index 4d6868f76f35cf77166cfcff54c7e23ccae0036d..2b6123514633799c668060ff755e4d7a645394a7 100644 (file)
@@ -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()}`));
     }
   };