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>
{#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
}
};