Fix Request being wrongly resolved (even if it failed)

This commit is contained in:
2025-06-16 22:47:53 +02:00
parent e0ec64882b
commit 692bf3561b

View File

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