repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d900c8d
)
Refine worker exit with error message
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 27 Nov 2022 10:30:22 +0000
(11:30 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/worker/WorkerUtils.ts
b/src/worker/WorkerUtils.ts
index 4d6868f76f35cf77166cfcff54c7e23ccae0036d..2b6123514633799c668060ff755e4d7a645394a7 100644
(file)
--- 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()
}`));
}
};