Search code examples
javascriptfirefoxember.jsember-datafirebug

Firefox/Firebug not showing thrown error messages


I had an error in my code which caused an exception to be thrown. It did originate from creating an Error() object, but it was from EmberError.

Firefox and Firebug produce the same output: enter image description here

While Chrome actually shows the thrown message: enter image description here


Solution

  • In Ember, the default error message logs the stack property of Error().

    In Firefox, that is just the stack trace.

    However, in Chrome, error.stack is the error message prepended to the stack trace.