Skip to content

Commit

Permalink
Display default error when .error is null
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV committed Feb 22, 2024
1 parent 46e7fd4 commit b21b565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<div class="text-6xl font-black">
{$page.status}
</div>
<div class="text-3xl">{$page.error.message}</div>
<div class="text-3xl">{$page.error?.message || "Unknown error"}</div>
</div>

0 comments on commit b21b565

Please sign in to comment.