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 cfd6091 commit ce54696Copy full SHA for ce54696
app/routes/crate.js
@@ -4,9 +4,8 @@ export default Ember.Route.extend({
4
model(params) {
5
return this.store.find('crate', params.crate_id).catch(e => {
6
if (e.errors.any(e => e.detail === 'Not Found')) {
7
- this.controllerFor('application').set('nextFlashError', `Crate '${params.crate_id}' does not exist`);
8
- return this.replaceWith('index');
+ throw new Error(`${params.crate_id} not found`);
9
}
10
});
11
- },
+ }
12
app/templates/crate/version.hbs
@@ -244,3 +244,5 @@
244
</div>
245
246
{{/if}}
247
+
248
+{{ outlet }}
0 commit comments