Skip to content

Commit

Permalink
Write console status messages to stderr rather than stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jan 9, 2011
1 parent 3ae6f96 commit 89b0f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.io/utils.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var status = function (msg, type) {
msg = '\x1B[33mINFO\x1B[0m: \x1B[1m' + msg + '\x1B[0m';
break;
}
console.log(msg);
console.error(msg); //Write to stderr
if (type === 'fatal') {
process.exit(1);
}
Expand Down

0 comments on commit 89b0f5a

Please sign in to comment.