Is there any way to show errors that happen in components?


#1

With ember 2.0 emphasizing component it seems like there should be a way to see errors that happen in components rather than just trying to troubleshot by assuming they are okay when they render. A flag for this would be nice, if this doesn’t exist already.


#2

any thoughts on this?


#3

I don’t understand the question. A hook for when an error occurs during a render cycle? As in the component fails to mount or something?


#4

Basically. I.e. you forget an import and call something which isn’t present in the component’s scope and it just doesn’t render. Instead an actual error being shown would be very helpful.


#5

A simple unit test to ensure the component renders would avoid that.


#6

I don’t really follow. The problem is that a proper error isn’t displayed. It’s basically swallowing errors and all you know is that a component didn’t render for some reason.