From f8bb1bf6de01642b720a696f1534ac7d5308247f 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 | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/packages/site/src/routes/+error.svelte b/packages/site/src/routes/+error.svelte index d3f07d60..3897b31e 100644 --- a/packages/site/src/routes/+error.svelte +++ b/packages/site/src/routes/+error.svelte @@ -1,8 +1,5 @@ - {status} + {$page.status}

{status}

-{#if error.message} -

{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}