Permalink
Browse files

Merge pull request #35 from kosmotaur/master

some programs, like nodelint, emit data to stdout even when failing
  • Loading branch information...
2 parents b9e3633 + 64eb1c5 commit d103af2d25fabab55a72d25011f29157fc9e86c6 @chriso chriso committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli.js
View
2 cli.js
@@ -1069,7 +1069,7 @@ cli.exec = function (cmd, callback, errback) {
err = err || stderr;
if (err) {
if (errback) {
- return errback(err);
+ return errback(err, stdout);
}
return cli.fatal('exec() failed\n' + err);
}

0 comments on commit d103af2

Please sign in to comment.