Last 2023 Spring RCOS push

This commit is contained in:
ION606
2023-04-25 17:34:01 -04:00
parent 04af684e13
commit 75f263f88c
6 changed files with 125 additions and 4 deletions
+2 -1
View File
@@ -162,7 +162,8 @@ export class Client extends EventEmitter {
this.axiosCustom.interceptors.response.use((response) => {
return response;
}, function (err) {
throw `REQUEST FAILED WITH STATUS CODE ${err.response.status} AND REASON "${err.response.data.message}"`;
console.log(err.response.data);
throw `REQUEST FAILED WITH STATUS CODE ${err.response.status} AND REASON "${JSON.stringify(err.response.data)}"`;
});
return new Promise((resolve, reject) => {