diff options
Diffstat (limited to 'src/routes/__error.svelte')
| -rw-r--r-- | src/routes/__error.svelte | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte deleted file mode 100644 index b62b158f..00000000 --- a/src/routes/__error.svelte +++ /dev/null @@ -1,38 +0,0 @@ -<script context="module"> - export function load({ error, status }) { - if (error.message.includes('not found')) { - error.message = 'Page not found.'; - status = 404; - } - - return { - props: { - error, - status - } - }; - } -</script> - -<script> - import { Icon, PageNotFound } from '$comp'; - export let status, error; -</script> - -{#if status === 404} - <PageNotFound /> -{:else} - <div class="flex justify-center items-center mt-20"> - <div class="space-y-5 text-center"> - <a href="/"> - <Icon icon="logo" style="mx-auto" /> - </a> - - <Icon icon="error" style="mx-auto w-56" /> - - <h1 class="font-bold text-5xl">Error</h1> - <p class="px-1 w-full md:w-96 break-all font-bold">{error.message.toUpperCase()}</p> - <p>Please try again or contact support.</p> - </div> - </div> -{/if} |
