mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-04-18 00:43:13 +00:00
Fix bug when trying to get the text response on failure
This commit is contained in:
parent
ddc8158601
commit
53d5f8efa2
@ -16,7 +16,7 @@ export const Fetch = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!res.data.ok) {
|
if (!res.data.ok) {
|
||||||
const message = await Promises.safe(res.data.text);
|
const message = await Promises.safe(() => res.data.text());
|
||||||
|
|
||||||
if (message.error) {
|
if (message.error) {
|
||||||
return message;
|
return message;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user