fix(ui): api client catch errors
This commit is contained in:
parent
6c058b36d2
commit
8580020f2c
1 changed files with 2 additions and 0 deletions
|
|
@ -159,6 +159,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