Skip to content

Commit

Permalink
feat: set exitCode to non-zero when catching error (close: #598 & #570)…
Browse files Browse the repository at this point in the history
… (#615)
  • Loading branch information
ulivz authored Jun 26, 2018
1 parent d7bd5b7 commit 0907c7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/vuepress.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function wrapCommand (fn) {
return (...args) => {
return fn(...args).catch(err => {
console.error(chalk.red(err.stack))
process.exitCode = 1
})
}
}

0 comments on commit 0907c7e

Please sign in to comment.