summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 20:44:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-09 20:44:25 +0000
commit67976608ff1afff71e46a72b3d0c2dca800292e1 (patch)
tree433f0098616bc504951eaea473f95e154a912817
parentbfff1d9d93dccb9f0080b84d3933d47f2a6a1f6c (diff)
Warnings yellow, errors red. This will help us pick errors out from warnings in the output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8864 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xrun-cc.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/run-cc.pl b/run-cc.pl
index 29af15393..380b01ef7 100755
--- a/run-cc.pl
+++ b/run-cc.pl
@@ -25,6 +25,16 @@ my @msgfilters = (
}
die $errstr;
} ],
+
+ [ qr/^.* warning: / => sub {
+ my ($msg) = @_;
+ print STDERR "\e[33;1m$msg\e[0m\n";
+ } ],
+
+ [ qr/^.* error: / => sub {
+ my ($msg) = @_;
+ print STDERR "\e[31;1m$msg\e[0m\n";
+ } ],
);
my $pid;