Don't log every 404 error.
This commit is contained in:
parent
eb7a1792d6
commit
f2d4e60102
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ const { data, error } = await useAsyncData<PageResponse | null>(
|
|||
|
||||
if (!data.value && !error.value) {
|
||||
// Explicit 404 if the page isn't in the CMS (or not published)
|
||||
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
|
||||
throw createError({ statusCode: 404, statusMessage: 'Page not found' })
|
||||
}
|
||||
|
||||
// <head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue