Skip to content

Commit 0907c7e

Browse files
authored
feat: set exitCode to non-zero when catching error (close: #598 & #570) (#615)
1 parent d7bd5b7 commit 0907c7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/vuepress.js

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function wrapCommand (fn) {
103103
return (...args) => {
104104
return fn(...args).catch(err => {
105105
console.error(chalk.red(err.stack))
106+
process.exitCode = 1
106107
})
107108
}
108109
}

0 commit comments

Comments
 (0)