Skip to content

Instantly share code, notes, and snippets.

@knownasilya
Created September 19, 2013 14:00
Show Gist options
  • Save knownasilya/6623920 to your computer and use it in GitHub Desktop.
Save knownasilya/6623920 to your computer and use it in GitHub Desktop.
Promise catch all
// 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