From 06403a77102236b3b7b3b2aa1655b511acd478eb Mon Sep 17 00:00:00 2001 From: re-fort Date: Sat, 30 Sep 2017 09:23:47 +0900 Subject: [PATCH] :bulb: Log when unhandledRejection --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 1e1c399..f71752e 100644 --- a/index.js +++ b/index.js @@ -119,4 +119,6 @@ function extractMatchedMessage(message) { return message.text !== '' && message.channel.id === process.env.SLACK_CHANNEL && message.username === 'recent commits to vuejs.org:master' } +process.on('unhandledRejection', err => { Utility.log('E', err) }) + setup()