handle missing stack, ie from this.error

This commit is contained in:
Rich Harris
2018-09-23 22:09:24 -04:00
parent 36a424b776
commit 2001e64853

View File

@@ -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
} }
}; };