From 20554f0d4b8e12c357e0bcf8936484d8a127f582 Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Fri, 31 Aug 2018 23:08:29 -0400 Subject: [PATCH] _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