Permalink
Browse files

also check stderr

  • Loading branch information...
1 parent 9f741ad commit 06aecddcdc94c54611756d7a37e97b8f4a1b1cb0 @kkaefer kkaefer committed Aug 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 server/utils.js
View
@@ -24,7 +24,7 @@ var styles = {
underline: 4
};
-if (tty.isatty(process.stdout.fd)) {
+if (tty.isatty(process.stdout.fd) && tty.isatty(process.stderr.fd)) {
utils.colorize = function(text, color, style) {
color = color || 'red';
style = style || 'regular';

0 comments on commit 06aecdd

Please sign in to comment.