Handle error

This commit is contained in:
Pierre HUBERT 2021-03-06 19:07:51 +01:00
parent ed850258d4
commit dd2c8ea707

View File

@ -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);