Apply dependencies update
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerUtils.ts
index 00feba445ff939cbc933eac0daf1a12fc0cfb4c4..4d6868f76f35cf77166cfcff54c7e23ccae0036d 100644 (file)
@@ -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));
+  };
 }