Skip to content

Commit

Permalink
execFile should return stdout and stderr even when the exit code if n…
Browse files Browse the repository at this point in the history
…ot 0
  • Loading branch information
Fabian Jakobs committed Oct 1, 2012
1 parent deb4212 commit f05ba4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions localfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,9 @@ module.exports = function setup(fsOptions) {
}

childProcess.execFile(executablePath, options.args || [], options, function (err, stdout, stderr) {
if (err) return callback(err);
callback(null, {
stdout: stdout,
stderr: stderr
callback(err, {
stdout: stdout || "",
stderr: stderr || ""
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"name": "vfs-local",
"description": "A vfs implementation that works on the local filesystem.",
"version": "0.3.4",
"version": "0.3.5",
"repository": {
"type": "git",
"url": "git://github.com/c9/vfs-local.git"
Expand Down

0 comments on commit f05ba4b

Please sign in to comment.