diff --git a/src/index.ts b/src/index.ts index 014488795..1083ac5c6 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');