Skip to content

Commit

Permalink
Capture unhandled errors from promises.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyespo committed Feb 20, 2015
1 parent abb49f2 commit fd2e701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/ember.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Ember.onerror = function EmberOnError(error) {
_oldOnError.call(this, error);
}
};

Ember.RSVP.on('error', function (err) {
Raven.captureException(err);
});

}(window, window.Raven, window.Ember));

0 comments on commit fd2e701

Please sign in to comment.