[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: consistent error display in development and production (#906)

authored by

abeer0 and committed by
GitHub
c3d63c49 bf8fa752

+2 -2
+2 -2
app/error.vue
··· 5 5 error: NuxtError 6 6 }>() 7 7 8 - const status = computed(() => props.error.status || 500) 8 + const status = computed(() => props.error.statusCode || 500) 9 9 const statusText = computed(() => { 10 - if (props.error.statusText) return props.error.statusText 10 + if (props.error.statusMessage) return props.error.statusMessage 11 11 switch (status.value) { 12 12 case 404: 13 13 return 'Page not found'