We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354c7cd commit 530c258Copy full SHA for 530c258
lib/client.js
@@ -121,8 +121,10 @@ extend(Raven.prototype, {
121
if (this.captureUnhandledRejections) {
122
var self = this;
123
global.process.on('unhandledRejection', function(reason, promise) {
124
- var context = promise.domain && promise.domain.sentryContext;
125
- self.captureException(reason, context || {}, function(sendErr, eventId) {
+ var context = (promise.domain && promise.domain.sentryContext) || {};
+ context.extra = context.extra || {};
126
+ context.extra.unhandledPromiseRejection = true;
127
+ self.captureException(reason, context, function(sendErr, eventId) {
128
if (!sendErr) {
129
var reasonMessage = (reason && reason.message) || reason;
130
utils.consoleAlert(
0 commit comments