feat: improve error handling

This commit is contained in:
Xyphyn committed 2023-08-03 12:07:57 -07:00
1 parent 4b6878ffac
commit e34cace14f
8 files changed
+39 -31

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@
import Button from '$lib/components/input/Button.svelte'
</script>
<div class="flex flex-col mx-auto gap-4 justify-center items-center">
<div class="flex flex-col mx-auto gap-4 justify-center items-center h-full">
<h1 class="font-black text-5xl">{$page.status}</h1>
<p>Failed to fetch that page. Is it missing?</p>
<p>Failed to fetch that page.</p>
<code>{$page.error?.message}</code>
<Button href={$page.url.toString()}>Retry</Button>
</div>