mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-21 11:05:36 +02:00
Fix Request being wrongly resolved (even if it failed)
This commit is contained in:
@ -27,7 +27,7 @@ function makeRequestWrapper(method: string, uri: string, content?: object | stri
|
|||||||
.then((result) => result as Promise<object>)
|
.then((result) => result as Promise<object>)
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
return Promise.resolve(undefined);
|
return Promise.reject(e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user