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
  • Loading branch information
ulivz committed Jun 26, 2018
1 parent d7bd5b7 commit 242b1fd
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 242b1fd

Please sign in to comment.