diff --git a/frontend/src/Components/Login.svelte b/frontend/src/Components/Login.svelte index edcbeb5..86f22fe 100644 --- a/frontend/src/Components/Login.svelte +++ b/frontend/src/Components/Login.svelte @@ -49,7 +49,7 @@ location.href = endpoint + '?' + new URLSearchParams(json); } } else { - error(await resp.text()); + error(resp); if (btn) btn.disabled = false; } } diff --git a/frontend/src/routes/bookmark/Index.svelte b/frontend/src/routes/bookmark/Index.svelte index b52e133..31baa91 100644 --- a/frontend/src/routes/bookmark/Index.svelte +++ b/frontend/src/routes/bookmark/Index.svelte @@ -40,7 +40,7 @@ Object.entries(input).map(([key, value]) => [key, value.name]) ); } else { - error(await resp.text()); + error(resp); return {}; } } @@ -58,7 +58,7 @@ yikes(); if (Object.keys(raw).length) onscroll(null); // when bookmarks were received, check whether they fill up the page } else { - error(await resp.html()) + error(resp) } } @@ -81,7 +81,7 @@ const bookmark = await resp.json(); bookmarks.unshift(bookmark); } else { - error(await resp.text()); + error(resp); } } diff --git a/frontend/src/routes/bookmark/View.svelte b/frontend/src/routes/bookmark/View.svelte index 4f49cfd..3b10b46 100644 --- a/frontend/src/routes/bookmark/View.svelte +++ b/frontend/src/routes/bookmark/View.svelte @@ -20,11 +20,11 @@ bookmark = await resp.json(); yikes(); } else { - error(await resp.text()); + error(resp.text); } } onMount(load); -