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