0👍
✅
When you handle your errors you stop the error from being propagated back up the promise chain. If you want the error to continue going up even after you handle it, you have to re-throw it in your error handling logic like
return axios.post("/api/contacts/send-contact-mail", payload).then(
response => {
commit("Loader/SET_LOADER", { status: 2, response: response }, { root: true );
},
error => {
commit("Loader/SET_LOADER", { status: 3, errors: error }, { root: true });
throw error;
}
);
Source:stackexchange.com