fix(nuxt): print name of missing island component (#22440)

This commit is contained in:
MiniDigger | Martin 2023-08-02 12:17:27 +02:00 committed by GitHub
parent 586e1ba3ee
commit 7489b7d7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ export default defineComponent({
if (!component) {
throw createError({
statusCode: 404,
statusMessage: `Island component not found: ${JSON.stringify(component)}`
statusMessage: `Island component not found: ${props.context.name}`
})
}