Skip to content

Commit 20ffdf5

Browse files
committed
chore: consistent error display in development and production
1 parent d4584fe commit 20ffdf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/error.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const props = defineProps<{
55
error: NuxtError
66
}>()
77
8-
const status = computed(() => props.error.status || 500)
8+
const status = computed(() => props.error.statusCode || 500)
99
const statusText = computed(() => {
10-
if (props.error.statusText) return props.error.statusText
10+
if (props.error.statusMessage) return props.error.statusMessage
1111
switch (status.value) {
1212
case 404:
1313
return 'Page not found'

0 commit comments

Comments
 (0)