Skip to content

Commit ce8e1a5

Browse files
committed
No need to send Ember's stack trace.
1 parent edb1532 commit ce8e1a5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/ember.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ Ember.RSVP.on('error', function (reason) {
2222
if (reason instanceof Error) {
2323
Raven.captureException(reason, {extra: {context: 'Unhandled RSVP error'}});
2424
} else {
25-
try {
26-
throw new Error('Unhandled Promise error detected');
27-
} catch (err) {
28-
Raven.captureException(err, {extra: {reason: reason}});
29-
}
25+
Raven.captureMessage('Unhandled Promise error detected', {extra: {reason: reason}});
3026
}
3127
});
3228

0 commit comments

Comments
 (0)