From b6616739f59840e12d855ce8996e02e5b076db02 Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Fri, 10 Jan 2020 04:30:20 +0100 Subject: [PATCH] fix: use process.exit if install fails (#633) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: provide an exitCode if install fails * Update src/installer/bin.ts Co-Authored-By: Maël Nison Co-authored-by: Maël Nison --- src/installer/bin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/installer/bin.ts b/src/installer/bin.ts index ce06c00c5..c76540c1b 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -103,6 +103,7 @@ function run(): void { console.log(chalk.red(err.message.trim())) debug(err.stack) console.log(chalk.red(`husky > Failed to ${action}`)) + process.exitCode = 1 } }