mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-02 13:33:07 +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) {
|
||||
const message = await Promises.safe(res.data.text);
|
||||
const message = await Promises.safe(() => res.data.text());
|
||||
|
||||
if (message.error) {
|
||||
return message;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user