repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Combined PR (#197)
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerUtils.ts
diff --git
a/src/worker/WorkerUtils.ts
b/src/worker/WorkerUtils.ts
index 00feba445ff939cbc933eac0daf1a12fc0cfb4c4..4d6868f76f35cf77166cfcff54c7e23ccae0036d 100644
(file)
--- a/
src/worker/WorkerUtils.ts
+++ b/
src/worker/WorkerUtils.ts
@@
-10,4
+10,8
@@
export class WorkerUtils {
console.error(chalk.red(`Worker stopped with exit code ${code}`));
}
};
+
+ public static defaultErrorHandler = (error: Error): void => {
+ console.error(chalk.red('Worker errored: ', error));
+ };
}