Log unhandled errors

This commit is contained in:
Brandon Keepers 2016-10-16 09:58:47 -05:00
parent c672d28345
commit d1055f5056
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 5 additions and 0 deletions

View File

@ -45,4 +45,9 @@ webhook.on('*', event => {
}
});
// Show trace for any unhandled rejections
process.on('unhandledRejection', reason => {
console.error(reason);
});
console.log('Listening on http://localhost:' + PORT);