Skip to content

Commit

Permalink
Merge pull request #76 from testdouble/stop-swallowing-errors
Browse files Browse the repository at this point in the history
Report errors by console-logging and exit code
  • Loading branch information
jasonkarns authored Dec 19, 2018
2 parents 5d9f4c5 + a0e878a commit d3f9969
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if (!lifecycleEvent) {
scriptsWin: loadOption('windowsPath')
}
}, function (er, code) {
if (er) {
console.error(er)
code = code || er.code || 1
}
process.exitCode = code
})
}

0 comments on commit d3f9969

Please sign in to comment.