Skip to content

Commit

Permalink
Merge pull request #13 from eflexsystems/send_stdout_with_error_message
Browse files Browse the repository at this point in the history
errors are printed in stdout, so manually append them to error message
  • Loading branch information
jakesjews authored Oct 24, 2016
2 parents cd57664 + 19dcf6e commit d369c90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ SambaClient.prototype.execute = function(cmd, cmdArgs, workingDir, cb) {

exec(command, options, function(err, stdout, stderr) {
var allOutput = (stdout + stderr);
if(err !== null) {
err.message += allOutput;
}
cb(err, allOutput);
});
};
Expand Down

0 comments on commit d369c90

Please sign in to comment.