Application Error/Loading routes


When a model hook rejects, Ember nicely transitions to the error template for that particular route.

This works fine, and I’ve been using it for years.

For the first time, I’ve had to return something from the application’s model hook.

I was expecting the loading and error templates to behave the same, but I can’t get them to work.

Simply rejecting from the application’s model hook results in a whilst screen of death, and doesn’t transition to the error route like I would expect.

I’ve set up a super simple Twiddle, if anybody could enlighten me that would be great.


Try renaming the template to application-error.


Yep, thanks I got that in the end. Although couldn’t get application-loading.hbs to work, but that’s ok I don’t really need that. Ty.