From a557be0b88bbf9c55dba3a20f8a92b68d4e1b893 Mon Sep 17 00:00:00 2001
From: Ben McCann <322311+benmccann@users.noreply.github.com>
Date: Fri, 20 Oct 2023 22:05:14 -0700
Subject: [PATCH] update error page
---
packages/site/src/routes/+error.svelte | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/packages/site/src/routes/+error.svelte b/packages/site/src/routes/+error.svelte
index d3f07d60..a63fbd1d 100644
--- a/packages/site/src/routes/+error.svelte
+++ b/packages/site/src/routes/+error.svelte
@@ -1,8 +1,6 @@
{status}: {error.message}
+{#if $page.error.message} +{status}: {$page.error.message}
{:else} -Encountered a {status} error
-{/if} - -{#if dev && error.stack} -{error.stack}+
Encountered a {$page.status} error
{/if}