Commit | Line | Data |
---|---|---|
8eac9a09 JB |
1 | import chalk from 'chalk'; |
2 | ||
7874b0b1 | 3 | export class WorkerUtils { |
d5bd1c00 JB |
4 | private constructor() { |
5 | // This is intentional | |
6 | } | |
7 | ||
7874b0b1 JB |
8 | public static defaultExitHandler = (code: number): void => { |
9 | if (code !== 0) { | |
9c5d9fa4 | 10 | console.error(chalk.red(`Worker stopped with exit code ${code}`)); |
7874b0b1 JB |
11 | } |
12 | }; | |
13 | } |