Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix(bin): Set non-zero exit code on error (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacseymour authored and zkat committed Mar 6, 2018
1 parent 8774fac commit 54d0106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/cli.js
Expand Up @@ -28,7 +28,10 @@ function cliMain () {
details => console.error(`added ${details.pkgCount} packages in ${
details.runTime / 1000
}s`),
err => console.error(`cipm failed:\n${err.message}\n${err.stack}`)
err => {
console.error(`cipm failed:\n${err.message}\n${err.stack}`)
process.exitCode = 1
}
)
}

Expand Down

0 comments on commit 54d0106

Please sign in to comment.