mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-07-14 23:18:08 +00:00
Handle error
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user