Commit deb3aba0 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Redirect to instance list, if specific instance is not found

parent 00ed8b59
......@@ -34,6 +34,16 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
deactivate: function () {
Ember.run.cancel(this.poll);
},
actions: {
error: function(error) {
if (error && error.errors[0].status === 404) {
this.deactivate();
return this.transitionTo('lambda-instances.index');
}
return false;
}
}
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment