Skip to content

Commit b478429

Browse files
kumaviskamilogorek
authored andcommitted
feat: add flag for unhandled promise rejections (#1278)
1 parent 2bfb2e4 commit b478429

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/raven.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ Raven.prototype = {
426426
*/
427427
_promiseRejectionHandler: function(event) {
428428
this._logDebug('debug', 'Raven caught unhandled promise rejection:', event);
429-
this.captureException(event.reason);
429+
this.captureException(event.reason, {
430+
extra: {
431+
unhandledPromiseRejection: true
432+
}
433+
});
430434
},
431435

432436
/**

0 commit comments

Comments
 (0)