Skip to content

Commit

Permalink
Merge pull request #157 from Recras/write-errors-to-error-buffer
Browse files Browse the repository at this point in the history
Write errors to error buffer
  • Loading branch information
jimfleming committed Jul 30, 2015
2 parents 28c31af + a5e057f commit 5c51845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function handleDiff(fullPath, originalJavascript, formattedJavascript) {
console.log(stdout);
}
if (stderr) {
console.log(stderr);
console.error(stderr);
}
});
});
Expand Down Expand Up @@ -159,7 +159,7 @@ function handleJavascript(fullPath, original) {
if (errors && errors.length) {
errors.forEach(function(error) {
var msg = util.format('Error: %s Line: %s Column: %s', error.description, error.lineNumber, error.column);
console.log(msg);
console.error(msg);
});
process.exit(-1);
}
Expand Down

0 comments on commit 5c51845

Please sign in to comment.