Permalink
Browse files

some programs, like nodelint, emit data to stdout even when failing

without this I have no access to the data I need from nodelint when cli.exec'ing it
  • Loading branch information...
1 parent 99ebc5a commit 64eb1c5c88db9b59b3f323eab80a9b4e6d1b8cfc @kosmotaur kosmotaur committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli.js
View
@@ -1067,7 +1067,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 64eb1c5

Please sign in to comment.