Fix error message
This commit is contained in:
parent
2b0addd505
commit
ff012cf0a3
|
@ -19,7 +19,7 @@ export default class Api {
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
throw new Error(`${errorPath} | ${error.response.data} | ${error.response.status}`);
|
throw new Error(`${errorPath} | ${error.response.data} | ${error.response.status}`);
|
||||||
}
|
}
|
||||||
throw new Error(`${errorPath} | ${error}`);
|
throw new Error(`${errorPath} | ${error.message ? error.message : error}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue