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.
2 parents a1c0afc + 516047e commit b51bc89Copy full SHA for b51bc89
plugins/ember.js
@@ -18,8 +18,12 @@ Ember.onerror = function EmberOnError(error) {
18
_oldOnError.call(this, error);
19
}
20
};
21
-Ember.RSVP.on('error', function (err) {
22
- Raven.captureException(err);
+Ember.RSVP.on('error', function (reason) {
+ if (reason instanceof Error) {
23
+ Raven.captureException(reason, {extra: {context: 'Unhandled Promise error detected'}});
24
+ } else {
25
+ Raven.captureMessage('Unhandled Promise error detected', {extra: {reason: reason}});
26
+ }
27
});
28
29
}(window, window.Raven, window.Ember));
0 commit comments