Merge pull request #1934 from Safelite/feature/CSR-2157
Added back the routing logic to go back to the first page if a non 404 error occurs
This commit is contained in:
commit
e246abde01
1 changed files with 9 additions and 7 deletions
|
|
@ -98,15 +98,17 @@ export default {
|
|||
);
|
||||
}
|
||||
|
||||
// Do not route to error logic when no wipers found or no promo found (404s)
|
||||
if (error.response.status != "404") {
|
||||
//router.navigateError(); Emergency change for testing - skiener 03/12
|
||||
}
|
||||
// Do not route to error logic when no wipers found or no promo found (404s)
|
||||
router.navigateError();
|
||||
|
||||
global.$logger.logError(
|
||||
`${method}: ${endpoint}: ${error.message}`,
|
||||
error.response
|
||||
);
|
||||
// do not log 404 errors from services because we return NotFound
|
||||
// when a service doesn't return an object
|
||||
global.$logger.logError(
|
||||
`${method}: ${endpoint}: ${error.message}`,
|
||||
error.response
|
||||
);
|
||||
}
|
||||
|
||||
return reject(error.response);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue