Last active
August 4, 2017 03:26
-
-
Save shunchu/e664c43588f425870cee to your computer and use it in GitHub Desktop.
display ember promise errors
This file contains 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
// source: https://ianpetzer.wordpress.com/2013/07/24/dont-let-ember-js-swallow-errors-in-your-promises/ | |
Ember.RSVP.configure('onerror', function(e) { | |
console.log(e.message); | |
console.log(e.stack); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment