Adding custom error page.

This commit is contained in:
Bradley Shellnut 2023-01-29 16:09:31 -08:00
parent 26d4eee1b8
commit 2ac689516e

13
src/routes/+error.svelte Normal file
View file

@ -0,0 +1,13 @@
<script lang="ts">
import { page } from "$app/stores";
</script>
{#if $page.status === 404}
<h1>Sorry page not found! 🤷🏼</h1>
<p>You just hit a route that doesn't exist.</p>
{/if}
{#if $page.status === 500}
<h1>Sorry an unexpected error occurred! 😿</h1>
<p>Please try again later. </p>
{/if}