Skip to content

Commit

Permalink
fix: use process.exit if install fails (#633)
Browse files Browse the repository at this point in the history
* fix: provide an exitCode if install fails

* Update src/installer/bin.ts

Co-Authored-By: Maël Nison <nison.mael@gmail.com>

Co-authored-by: Maël Nison <nison.mael@gmail.com>
  • Loading branch information
2 people authored and typicode committed Jan 10, 2020
1 parent 8006363 commit b661673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/installer/bin.ts
Expand Up @@ -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
}
}

Expand Down

0 comments on commit b661673

Please sign in to comment.