openphacts / explorer2

Ember JS web application used for browsing the Open PHACTS Discovery Platform
MIT License
2 stars 1 forks source link

Handle errors when opening page with invalid model or route #10

Closed ianwdunlop closed 9 years ago

ianwdunlop commented 9 years ago

The current code uses flash messages on the app route when transitioning to an error state. If the explorer is opened fresh at a model which the API cannot find or at a route which is not listed then the user is presented with a blank page since no template is rendered. The explorer should use the 'error' substate and reject model promises so that 404, 500 tailored page can be displayed. Need a general route to handle 404 for missing routes.