12 lines
253 B
JavaScript
12 lines
253 B
JavaScript
|
import Ember from 'ember';
|
||
|
|
||
|
const { Route, Error: EmberError } = Ember;
|
||
|
|
||
|
export default Route.extend({
|
||
|
model() {
|
||
|
const err = new EmberError('Page not found');
|
||
|
err.code = '404';
|
||
|
this.controllerFor('application').set('error', err);
|
||
|
},
|
||
|
});
|