Skip to content

Commit

Permalink
refactor: allow non-empty stderr in runSync (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 5, 2020
1 parent 255e660 commit 157b508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ exports.runSync = function(cmd, args, options) {
}, options));
if (child.error) {
throw child.error;
} else if (child.stderr.length) {
} else if (child.status !== 0) {
throw new Error(child.stderr.toString());
} else {
return child.stdout.toString();
Expand Down

0 comments on commit 157b508

Please sign in to comment.