Where to declate Ember.onerror


#1

Where’s the correct place to declare Ember.onerror = function(error){...} in ember-cli?


#2

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.


#3

i created an error handling initializer and put it in there


#4

+1 for initializer, that’s also how I did it.


#5

Initializer makes the best sense to me, thanks.


#6

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?