Commit f8a3bb8c authored by Evren Kutar's avatar Evren Kutar

500 and 404 pages disabled

parent a8348118
...@@ -114,13 +114,13 @@ app.config(['$httpProvider', function ($httpProvider) { ...@@ -114,13 +114,13 @@ app.config(['$httpProvider', function ($httpProvider) {
if (rejection.status === 404) { if (rejection.status === 404) {
console.log(404); console.log(404);
errorModal(); errorModal();
$location.path("/error/404"); //$location.path("/error/404");
} }
// server 500 error returns with -1 on status. // server 500 error returns with -1 on status.
//if (rejection.status === -1 && rejection.config.data.model) { //if (rejection.status === -1 && rejection.config.data.model) {
if (rejection.status === 500) { if (rejection.status === 500) {
errorModal(); errorModal();
$location.path("/error/500"); //$location.path("/error/500");
} }
return $q.reject(rejection); return $q.reject(rejection);
} }
......
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