mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Handle error
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user