Where’s the correct place to declare Ember.onerror = function(error){...}
in ember-cli?
Have you tried setting that in your app/app.js
file? I seem to recall hearing about that before but don’t quite remember what the answer is.
i created an error handling initializer and put it in there
+1 for initializer, that’s also how I did it.
Initializer makes the best sense to me, thanks.
I also added this to an initializer, but defining a method on the Ember global object feels wrong. Is there another way to achieve this?