mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Handle error
This commit is contained in:
parent
ed850258d4
commit
dd2c8ea707
@ -39,7 +39,7 @@ const APIClient = {
|
||||
return new Promise((res, rej) => {
|
||||
this.makeFormDatarequest(uri, data, withLogin, (result) => {
|
||||
if (result.error)
|
||||
reject(result.error);
|
||||
rej(result.error);
|
||||
|
||||
else
|
||||
res(result);
|
||||
|
Loading…
Reference in New Issue
Block a user