summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-01-02 09:52:58 -0600
committerJesse Luehrs <doy@tozt.net>2013-01-02 09:52:58 -0600
commit5a01f61042ccc2bffdbb0c0b9b19b4884154ee71 (patch)
tree60e987198063354cd5bc1f7166a14674c7406410 /lib
parent261aa76d16c0c54baed4ebeaf93018e30eb56305 (diff)
downloadcarp-always-color-5a01f61042ccc2bffdbb0c0b9b19b4884154ee71.tar.gz
carp-always-color-5a01f61042ccc2bffdbb0c0b9b19b4884154ee71.zip
remove the HTML fallback entirely
Diffstat (limited to 'lib')
-rw-r--r--lib/Carp/Always/Color.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Carp/Always/Color.pm b/lib/Carp/Always/Color.pm
index 8fecff6..5ca6c4e 100644
--- a/lib/Carp/Always/Color.pm
+++ b/lib/Carp/Always/Color.pm
@@ -7,9 +7,6 @@ BEGIN {
if (-t *STDERR) {
require Carp::Always::Color::Term;
}
- else {
- require Carp::Always::Color::HTML;
- }
}
=head1 SYNOPSIS
@@ -26,8 +23,11 @@ Stack traces are hard to read when the messages wrap, because it's hard to tell
when one message ends and the next message starts. This just colors the first
line of each stacktrace, based on whether it's a warning or an error. If
messages are being sent to a terminal, it colors them with terminal escape
-codes, otherwise it colors them with HTML (ideas for more intelligent behavior
-here are welcome).
+codes. If you want to force this behavior, you can use
+L<Carp::Always::Color::Term> instead, which will always add terminal escape
+codes, even when the messages are being sent to something that doesn't look
+like a terminal. L<Carp::Always::Color::HTML> also exists, to add HTML color
+markup to the messages instead of terminal color codes.
=head1 BUGS