feat: add logging for when custom element registry not inserted
This commit is contained in:
parent
8d976b8b47
commit
b486a7a5d5
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@ html
|
||||||
|
|
||||||
*.log*
|
*.log*
|
||||||
.nitro
|
.nitro
|
||||||
|
.netlify
|
||||||
.cache
|
.cache
|
||||||
.output
|
.output
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -37,6 +37,11 @@ export function useMcFlyRoute({ storage }) {
|
||||||
|
|
||||||
if (!!componentType && !!html) {
|
if (!!componentType && !!html) {
|
||||||
html = await insertRegistry(html.toString(), componentType, storage)
|
html = await insertRegistry(html.toString(), componentType, storage)
|
||||||
|
} else {
|
||||||
|
console.error('[ERR]: Failed to insert registry', {
|
||||||
|
componentType: !componentType ? 'missing' : 'okay',
|
||||||
|
html: !html ? 'missing' : 'okay',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue