mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
fix(nuxt): print errors when compiling templates (#26410)
This commit is contained in:
parent
f344d39dab
commit
4a880cb693
@ -47,6 +47,7 @@ export async function generateApp (nuxt: Nuxt, app: NuxtApp, options: { filter?:
|
|||||||
const oldContents = nuxt.vfs[fullPath]
|
const oldContents = nuxt.vfs[fullPath]
|
||||||
const contents = await compileTemplate(template, templateContext).catch((e) => {
|
const contents = await compileTemplate(template, templateContext).catch((e) => {
|
||||||
logger.error(`Could not compile template \`${template.filename}\`.`)
|
logger.error(`Could not compile template \`${template.filename}\`.`)
|
||||||
|
logger.error(e)
|
||||||
throw e
|
throw e
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user