repositories
/
e-mobility-charging-stations-simulator.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Fix UI services Postman requests collection
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerUtils.ts
1
import
chalk from
'chalk'
;
2
3
export class
WorkerUtils
{
4
private
constructor
() {
5
// This is intentional
6
}
7
8
public static
defaultExitHandler
= (
code
:
number
):
void
=> {
9
if
(
code
!==
0
) {
10
console
.
error
(
chalk
.
red
(
`Worker stopped with exit code
${code}
`
));
11
}
12
};
13
}