From what I've seen, most people use an external service that 'just works' and then they throw in some code in an initializer to report the errors.
In my initializer, so far I have:
Ember.onerror = function(error) {
displayError(error);
};
and displayError
shows an error notification (similar to the Atom editor's error notifications)
But as I'm trying to add functionality to my displayError function (appending multiple errors, close one / all, showing stacktrace, eventually posting issues to github, etc), I've been finding that it's just VERY cumbersome to go back to vanilla javascript, and am wondering if there is a way to utilize ember to report errors that happen in my app.
Does anyone either:
- Know of an addon that does all this for me (I'm not interested in using a bug reporting service other than github)
- Know of a way to have Ember.onerror
trigger an action in the application controller so I can have use components to render the errors, and have much easier development implementing what I need?
Aucun commentaire:
Enregistrer un commentaire