fix(ui): api client catch errors
This commit is contained in:
parent
cc9e348154
commit
9d7406baa7
1 changed files with 2 additions and 0 deletions
|
|
@ -158,6 +158,8 @@ export default class APIClient {
|
|||
} else {
|
||||
return Promise.reject({ message: `! ${this.init.method} error on ${path}; ${response.status}`, response });
|
||||
}
|
||||
}).catch((error) => {
|
||||
return Promise.reject({ message: `! ${this.init.method} error on ${path};` });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue