# Application Error/Loading routes

**URL:** <https://discuss.emberjs.com/t/application-error-loading-routes/11749>\
**Category:** Uncategorized\
**Created:** [October 11, 2016, 4:48pm UTC](https://discuss.emberjs.com/t/application-error-loading-routes/11749 "2016-10-11T16:48:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/amk/32/9116_2.png) [@amk](https://discuss.emberjs.com/u/amk)\
**Post date:** [October 11, 2016, 4:48pm UTC](https://discuss.emberjs.com/t/application-error-loading-routes/11749/1 "2016-10-11T16:48:29Z")

</div>

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.

> **[Ember Twiddle](https://ember-twiddle.com/#/bb15ad9b4d19eb4e8257a054b69b31fd?openFiles=routes.application.js%2C)**
>
> A web-based Ember.js code sharing tool that follows ember-cli's conventions.

---

<div class="post-metadata">

**Author:** ![Bauke](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/bauke/32/12190_2.png) [@Bauke](https://discuss.emberjs.com/u/Bauke)\
**Post date:** [October 15, 2016, 2:38pm UTC](https://discuss.emberjs.com/t/application-error-loading-routes/11749/2 "2016-10-15T14:38:35Z")

</div>

Try renaming the template to `application-error`.

---

<div class="post-metadata">

**Author:** ![amk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/amk/32/9116_2.png) [@amk](https://discuss.emberjs.com/u/amk)\
**Post date:** [October 15, 2016, 3:13pm UTC](https://discuss.emberjs.com/t/application-error-loading-routes/11749/3 "2016-10-15T15:13:10Z")

</div>

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.
