mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-26 21:32:42 +00:00
always add error.message
This commit is contained in:
parent
b2edab0517
commit
24fe134641
@ -6,7 +6,7 @@
|
||||
<div class="column">
|
||||
<h1>{{ error.statusCode }} </h1>
|
||||
<h4> {{ $route.path }} </h4>
|
||||
<pre class="error-box"><code><%if(isDev){%>{{ error.stack }}<%}else{%>{{ error.message }}<%}%></code></pre>
|
||||
<pre class="error-box"><code>{{ error.message }}<%if(isDev){%><br>{{ error.stack }}<%}%></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>
|
||||
|
Loading…
Reference in New Issue
Block a user