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:
parent
52d2229482
commit
9ca41dec95
6 changed files with 275 additions and 0 deletions
|
@ -3516,6 +3516,11 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi
|
|||
return false;
|
||||
}
|
||||
|
||||
if (response.status == 500) {
|
||||
document.location = '/500';
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue