1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
11 lines
262 B
JavaScript
11 lines
262 B
JavaScript
import Route from '@ember/routing/route';
|
|
import EmberError from '@ember/error';
|
|
|
|
export default Route.extend({
|
|
model() {
|
|
const err = new EmberError('Page not found');
|
|
err.code = '404';
|
|
this.controllerFor('application').set('error', err);
|
|
},
|
|
});
|