Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 64eb1c5c88db9b59b3f323eab80a9b4e6d1b8cfc 1 parent 99ebc5a
@kosmotaur authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cli.js
View
2  cli.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.