diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-19 08:04:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-19 08:04:17 +0900 |
| commit | 2297c06fcea21cf02d7c63a58118be0ee5194e27 (patch) | |
| tree | e34f2cb2fdcf9a4bee74803965fb83cb08544d4b /src | |
| parent | Create mocha.opts (diff) | |
| download | misskey-2297c06fcea21cf02d7c63a58118be0ee5194e27.tar.gz misskey-2297c06fcea21cf02d7c63a58118be0ee5194e27.tar.bz2 misskey-2297c06fcea21cf02d7c63a58118be0ee5194e27.zip | |
[Server] Improve: Display detail of unhandled promise rejection
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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'); |