Skip to content

Commit c3d63c4

Browse files
authored
fix: consistent error display in development and production (#906)
1 parent bf8fa75 commit c3d63c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)