show whoops error stack on dev

This commit is contained in:
Pooya Parsa 2017-08-05 17:03:14 +04:30
parent 518545df29
commit 53c516f908

View File

@ -6,7 +6,7 @@
<div class="column">
<h1>{{ error.statusCode }} </h1>
<h4> {{ $route.path }} </h4>
<pre class="error-box"><code>{{ error.message }}</code></pre>
<pre class="error-box"><code><%if(isDev){%>{{ error.stack }}<%}else{%>{{ error.message }}<%}%></code></pre>
<p v-if="error.statusCode === 404 || error.statusCode === 'Whoops!'">
<nuxt-link class="error-link" to="/">Back to the home page</nuxt-link>
</p>