We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f08fa6 commit 8f73979Copy full SHA for 8f73979
app/router.js
@@ -34,7 +34,6 @@ class AppRouter extends EmberRouter {
34
}
35
36
AppRouter.map(function () {
37
- this.route('404');
38
this.route('ember-cli');
39
this.route('project', { path: '/:project' });
40
app/routes/project-version/classes/class.js
@@ -81,7 +81,11 @@ export default class ClassRoute extends Route.extend(ScrollTracker) {
81
82
83
if (model.isError) {
84
- this.router.transitionTo('404');
+ let error = new Error('Error retrieving model in routes/project-version/classes/class');
85
+
86
+ error.status = 404;
87
88
+ throw error;
89
90
91
app/templates/404.hbs
0 commit comments