Want to implement a proper global HTTP error handling in ember? You can try to do something with these events (put these lines in app.js before app initialization.
1 2 3 4 5 6 7 8 9 10 11 | Ember.onerror = function (error) { console.log('Ember.onerror handler', error.message); }; Ember.RSVP.on('error', function (error) { console.log('Ember.RSVP error handler', error); }); Ember.Logger.error = function (message, cause, stack) { console.log('Ember.Logger.error handler', message, cause, stack); }; |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.