Skip to content

Commit 8f73979

Browse files
committed
don't redirect when you have a 404
1 parent 5f08fa6 commit 8f73979

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

app/router.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class AppRouter extends EmberRouter {
3434
}
3535

3636
AppRouter.map(function () {
37-
this.route('404');
3837
this.route('ember-cli');
3938
this.route('project', { path: '/:project' });
4039

app/routes/project-version/classes/class.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ export default class ClassRoute extends Route.extend(ScrollTracker) {
8181
}
8282

8383
if (model.isError) {
84-
this.router.transitionTo('404');
84+
let error = new Error('Error retrieving model in routes/project-version/classes/class');
85+
86+
error.status = 404;
87+
88+
throw error;
8589
}
8690
}
8791

app/templates/404.hbs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)