mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +00:00
handle missing stack, ie from this.error
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
<p>{error.message}</p>
|
||||
|
||||
{#if NODE_ENV === 'development'}
|
||||
{#if NODE_ENV === 'development' && error.stack}
|
||||
<pre>{error.stack}</pre>
|
||||
{/if}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
helpers {
|
||||
helpers: {
|
||||
NODE_ENV: process.env.NODE_ENV
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user