mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
fix message incorrectly showing in error page
This commit is contained in:
parent
d78f7d034a
commit
7eb922029a
1 changed files with 2 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
|||
<script lang="ts">
|
||||
import BackAnchor from '$lib/BackAnchor.svelte'
|
||||
import { page } from '$app/stores'
|
||||
|
||||
const message = $page.error?.message
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
|
@ -11,8 +9,8 @@
|
|||
<section class="error-page">
|
||||
<div>
|
||||
<h1>{$page.status}</h1>
|
||||
{#if message}
|
||||
<h2>{message}</h2>
|
||||
{#if $page.error?.message}
|
||||
<h2>{$page.error.message}</h2>
|
||||
{/if}
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Reference in a new issue