Add a 500 error page and make it automatically display if there is a 500 error as a result of an API call

This commit is contained in:
Joseph Schorr 2014-03-10 17:01:36 -04:00
parent 52d2229482
commit 9ca41dec95
6 changed files with 275 additions and 0 deletions

View file

@ -3516,6 +3516,11 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi
return false;
}
if (response.status == 500) {
document.location = '/500';
return false;
}
return true;
});