mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
generate errors
This commit is contained in:
parent
ca525200ca
commit
3053431d79
@ -231,8 +231,6 @@ module.exports = class Generator {
|
||||
const pageErrors = []
|
||||
|
||||
try {
|
||||
this.spinner.info('Generate ' + route)
|
||||
|
||||
const res = await this.nuxt.renderer.renderRoute(route, {
|
||||
_generate: true,
|
||||
payload
|
||||
@ -292,7 +290,10 @@ module.exports = class Generator {
|
||||
})
|
||||
|
||||
if (pageErrors.length) {
|
||||
this.spinner.fail('Error generating ' + route)
|
||||
Array.prototype.push.apply(errors, pageErrors)
|
||||
} else {
|
||||
this.spinner.succeed('Generated ' + route)
|
||||
}
|
||||
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user