From 0907c7ec06383d0818b11fc83267907204da2e86 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 26 Jun 2018 22:12:17 +0800 Subject: [PATCH] feat: set exitCode to non-zero when catching error (close: #598 & #570) (#615) --- bin/vuepress.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/vuepress.js b/bin/vuepress.js index 00ea5bdfe2..1f6c35da3e 100755 --- a/bin/vuepress.js +++ b/bin/vuepress.js @@ -103,6 +103,7 @@ function wrapCommand (fn) { return (...args) => { return fn(...args).catch(err => { console.error(chalk.red(err.stack)) + process.exitCode = 1 }) } }