refactor: fail exit when building fixtures failed

This commit is contained in:
Clark Du 2018-03-19 14:54:14 +08:00
parent eace48fb8c
commit e801340107
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -58,5 +58,8 @@ new Listr([{
task: () => new Listr(tasks, {concurrent: options.concurrent}) task: () => new Listr(tasks, {concurrent: options.concurrent})
}], options) }], options)
.run() .run()
.catch(console.error) // eslint-disable-line no-console
.then(() => process.exit(0)) .then(() => process.exit(0))
.catch((err) => {
console.error(err) // eslint-disable-line no-console
process.exit(1)
})