Added back router.navigateError for errors other than 404.
This commit is contained in:
parent
2dee21887a
commit
95b3ef7cc6
1 changed files with 6 additions and 2 deletions
|
|
@ -56,12 +56,16 @@ export default {
|
||||||
additionalSuccessEventDataHandler,
|
additionalSuccessEventDataHandler,
|
||||||
}) {
|
}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
let cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
||||||
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
|
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings),
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (endpoint.includes("/vehicle/api/v1/vehicle/")) {
|
||||||
|
cfDistroUrl = "https://localhost:5001";
|
||||||
|
}
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: method,
|
method: method,
|
||||||
url: cfDistroUrl + endpoint,
|
url: cfDistroUrl + endpoint,
|
||||||
|
|
@ -100,7 +104,7 @@ export default {
|
||||||
|
|
||||||
if (error.response.status != "404") {
|
if (error.response.status != "404") {
|
||||||
// Do not route to error logic when no wipers found or no promo found (404s)
|
// Do not route to error logic when no wipers found or no promo found (404s)
|
||||||
// router.navigateError(); Emergency change for testing - skiener 03/12
|
router.navigateError();
|
||||||
|
|
||||||
// do not log 404 errors from services because we return NotFound
|
// do not log 404 errors from services because we return NotFound
|
||||||
// when a service doesn't return an object
|
// when a service doesn't return an object
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue