forked from mirrors/probot
Don't override unhandled rejection, report webhook errors
This commit is contained in:
parent
614df3fad6
commit
eb07a5df68
6
index.js
6
index.js
|
@ -26,13 +26,9 @@ module.exports = options => {
|
|||
}).install({});
|
||||
}
|
||||
|
||||
// Show trace for any unhandled rejections
|
||||
process.on('unhandledRejection', reason => {
|
||||
robot.log.error(reason);
|
||||
});
|
||||
|
||||
// Handle case when webhook creation fails
|
||||
webhook.on('error', err => {
|
||||
Raven.captureException(err);
|
||||
robot.log.error(err);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue