Skip to content

Commit

Permalink
Added stack trace to error.vue.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Oct 30, 2024
1 parent aa47a09 commit 74b54e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
<div>
<img :src="config.public.site.logoUrl" :alt="config.public.site.name" class="w-full md:w-28rem" />
</div>
<div v-if="dev" v-html="error?.stack"></div>

</div>
</div>
</template>

<script setup>
const props = defineProps(['error']);
const config = useRuntimeConfig();
const dev = process.dev
</script>
1 change: 1 addition & 0 deletions ving/docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ outline: deep
* Moved error.vue to app/error.vue.
* NOTE: If you customized error.vue you'll need to move it to app/error.vue.
* On the client-side, replaced `ouch()` with the built in `createError()` function.
* Added stack trace to error.vue.

### 2024-10-28
* Switched jobs to use redis from a remote cluster.
Expand Down

0 comments on commit 74b54e6

Please sign in to comment.