From 242b1fde426741e22e7dedca781bea6d6259f825 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 26 Jun 2018 21:47:38 +0800 Subject: [PATCH] feat: set exitCode to non-zero when catching error (close: #598 & #570). --- 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 }) } }