summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-19 08:04:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-19 08:04:17 +0900
commit2297c06fcea21cf02d7c63a58118be0ee5194e27 (patch)
treee34f2cb2fdcf9a4bee74803965fb83cb08544d4b /src
parentCreate mocha.opts (diff)
downloadmisskey-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.ts3
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');