Commit | Line | Data |
---|---|---|
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 | } |