Skip to content

Commit

Permalink
status can also be null (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Oct 7, 2015
1 parent a26869b commit 756fa35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -57,7 +57,7 @@ var runCommand = exports.runCommand = function(cmd, args) {
var deferred = Q.defer();

child.on('exit', function(status) {
if(status !== 0) {
if(status) {
deferred.reject(new Error('Command `' + cmd + '` did not complete successfully'));
} else {
deferred.resolve(child);
Expand Down

0 comments on commit 756fa35

Please sign in to comment.