Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xch89820 committed Nov 7, 2014
1 parent 06e9d22 commit 4160ed5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ exports.register = function(commander){
execChild.stdout.on("data", function (data){
fis.log.debug("jsDoc output : " + data);
});
execChild.stderr.on("data", function(data){
console.error(data);
});
execChild.on("error", function(data){
console.error("[Can be ignored] An error occurs in jsDoc process:\n" + data);
});
Expand Down
6 changes: 6 additions & 0 deletions exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ var execModule = {
var npmPath = isWin ? spath : path.join(spath, "lib");
callback(npmPath);
});
getPrefix.stderr.on('data', function(error){
process.stderr.write(error);
});
getPrefix.on('error', function(err) {
console.log("Can not find npm prefix");
process.stderr.write(err);
Expand Down Expand Up @@ -50,6 +53,9 @@ var execModule = {
});
}
});
jsDocVersion.stderr.on('data', function(error){
process.stderr.write(error);
});
jsDocVersion.on('close', function(code){
if (code === 0){
//Jsdoc exist
Expand Down

0 comments on commit 4160ed5

Please sign in to comment.