Skip to content

Commit

Permalink
💡 Log when unhandledRejection
Browse files Browse the repository at this point in the history
  • Loading branch information
re-fort committed Sep 30, 2017
1 parent 4aca879 commit 06403a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 06403a7

Please sign in to comment.