replacing site-local error display by global error display
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
bookmark = await resp.json();
|
||||
yikes();
|
||||
} else {
|
||||
error(await resp.text());
|
||||
error(resp.text);
|
||||
}
|
||||
}
|
||||
|
||||
onMount(load);
|
||||
</script>
|
||||
|
||||
<Template {bookmark} />
|
||||
<Template {bookmark} />
|
||||
|
||||
Reference in New Issue
Block a user