Skip to content

Commit

Permalink
Log any errors when running commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaeljorhult committed May 24, 2017
1 parent 7e8ce1b commit b6830b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/commander.js
Expand Up @@ -14,6 +14,10 @@

function commander (exec, options, cb) {
childProcess.exec(exec, options, function (err, stdout, stderr) {
if (err) {
console.log(err);
}

cb(null, stderr + stdout);
});
}
Expand Down

0 comments on commit b6830b7

Please sign in to comment.