repositories
/
e-mobility-charging-stations-simulator.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a181d80e205a2d6050e0f148311846d9a38db97a
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerUtils.ts
1
import
chalk from
'chalk'
;
2
3
export class
WorkerUtils
{
4
public static
defaultExitHandler
= (
code
:
number
):
void
=> {
5
if
(
code
!==
0
) {
6
console
.
error
(
chalk
.
red
(
`Worker stopped with exit code
${code}
`
));
7
}
8
};
9
}