mirror of https://github.com/hashicorp/consul
11 lines
221 B
JavaScript
11 lines
221 B
JavaScript
|
import Route from 'consul-ui/routing/route';
|
||
|
import Error from '@ember/error';
|
||
|
|
||
|
export default Route.extend({
|
||
|
beforeModel: function() {
|
||
|
const e = new Error('Page not found');
|
||
|
e.code = 404;
|
||
|
throw e;
|
||
|
},
|
||
|
});
|