Skip to content

Commit

Permalink
Merge pull request #534 from pastemyst/feat/error-pages
Browse files Browse the repository at this point in the history
feat: custom error page
  • Loading branch information
CodeMyst authored Sep 23, 2024
2 parents cb4f5c6 + a10aa62 commit 9b5d1e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions client/src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script lang="ts">
import { page } from "$app/stores";
</script>

<section class="markdown">
<h1>error {$page.status}</h1>

{#if $page.status === 404}
<p>not found</p>
{:else}
<p>{$page.error?.message}</p>
{/if}

<p>you can go back to the <a href="/">home page</a></p>
</section>

0 comments on commit 9b5d1e8

Please sign in to comment.