From 20554f0d4b8e12c357e0bcf8936484d8a127f582 Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Fri, 31 Aug 2018 23:08:29 -0400 Subject: [PATCH 1/2] _error.html renders `error.stack` when process.env.NODE_ENV === 'development' https://github.com/sveltejs/sapper-template/issues/73 --- routes/_error.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/routes/_error.html b/routes/_error.html index 72b3395..8e233a9 100644 --- a/routes/_error.html +++ b/routes/_error.html @@ -6,6 +6,12 @@

{error.message}

+{#if NODE_ENV === 'development'} +
+	{error.stack}
+
+{/if} + \ No newline at end of file + + + \ No newline at end of file From b55bde445e0df2bff562fb7a97de3dad167f0725 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 23 Sep 2018 22:03:29 -0400 Subject: [PATCH 2/2] Update _error.html --- routes/_error.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/routes/_error.html b/routes/_error.html index 8e233a9..ca81fb0 100644 --- a/routes/_error.html +++ b/routes/_error.html @@ -7,9 +7,7 @@

{error.message}

{#if NODE_ENV === 'development'} -
-	{error.stack}
-
+
{error.stack}
{/if}