diff --git a/src/index.ts b/src/index.ts index 0144887957..1083ac5c63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -182,6 +182,9 @@ function spawnWorkers(onComplete: any): void { }); } +// Display detail of unhandled promise rejection +process.on('unhandledRejection', console.dir); + // Dying away... process.on('exit', () => { Logger.info('The process is going exit');