From 8c5db823a4a4812628277d8eec7c28b9743999cb Mon Sep 17 00:00:00 2001 From: Johan Ohly Date: Mon, 16 Sep 2024 22:58:31 +0200 Subject: [PATCH] fix: add custom error page --- src/routes/+error.svelte | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/routes/+error.svelte diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte new file mode 100644 index 0000000..f63d6e0 --- /dev/null +++ b/src/routes/+error.svelte @@ -0,0 +1,18 @@ + + +
+ {#if $page.status === 404} +

404

+

Page not found

+ + {:else} +

An unknown error occured

+

{$page.error?.message}

+

+ If you are the site owner, please check the logs for more information. +

+ {/if} +