Include message and stack in error page if useful
Show the .message and .stack properties of the error object in the error page if these contain any useful information.
This commit is contained in:
parent
e8ff87d507
commit
8d0d2400d3
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
<template>
|
||||
<Header />
|
||||
<h1>{{ error.statusCode }} {{ error.statusMessage }}</h1>
|
||||
{{ error.message }}
|
||||
<p v-if="error.message !== error.statusMessage">
|
||||
{{ error.message }}
|
||||
</p>
|
||||
<pre v-if="error.stack"><code>{{ error.stack }}</code></pre>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue