replacing site-local error display by global error display

This commit is contained in:
2025-09-26 15:27:20 +02:00
parent 2a6392cd2b
commit e3b735bb7b
16 changed files with 62 additions and 66 deletions

View File

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

View File

@@ -20,11 +20,11 @@
bookmark = await resp.json();
yikes();
} else {
error(await resp.text());
error(resp.text);
}
}
onMount(load);
</script>
<Template {bookmark} />
<Template {bookmark} />