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 b61e077 commit dcb7f7cCopy full SHA for dcb7f7c
lib/client.js
@@ -123,7 +123,17 @@ extend(Raven.prototype, {
123
global.process.on('unhandledRejection', function(reason, promise) {
124
var context = promise.domain && promise.domain.sentryContext;
125
self.captureException(reason, context || {}, function(sendErr, eventId) {
126
- if (!sendErr) utils.consoleAlert('unhandledRejection captured: ' + eventId);
+ if (!sendErr) {
127
+ var reasonMessage = (reason && reason.message) || reason;
128
+ utils.consoleAlert(
129
+ 'unhandledRejection captured\n' +
130
+ 'Event ID: ' +
131
+ eventId +
132
+ '\n' +
133
+ 'Reason: ' +
134
+ reasonMessage
135
+ );
136
+ }
137
});
138
139
}
0 commit comments