Created
September 19, 2013 14:00
-
-
Save knownasilya/6623920 to your computer and use it in GitHub Desktop.
Promise catch all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Catch Promise errors even if not caught on the promise object. | |
Ember.RSVP.configure('onerror', function(error) { | |
console.warn(error.message); | |
console.log(error.stack); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment