Skip to content

Commit

Permalink
Merge pull request #4 from jackysee/patch-1
Browse files Browse the repository at this point in the history
error code maybe null
  • Loading branch information
keithamus committed Jan 16, 2015
2 parents 7ed038e + f257546 commit 6373275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var exec = require('child_process').exec;

function potentialExit (childCmd, code) {
code = code.code || code;
code = code? (code.code || code) : code;
if (code > 0) {
console.error('`' + childCmd + '` failed with exit code ' + code);
process.exit(code);
Expand Down

0 comments on commit 6373275

Please sign in to comment.