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