generate errors

This commit is contained in:
Pooya Parsa 2018-03-13 20:49:39 +03:30
parent ca525200ca
commit 3053431d79

View File

@ -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