From 67976608ff1afff71e46a72b3d0c2dca800292e1 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Feb 2008 20:44:25 +0000 Subject: [PATCH] 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 --- run-cc.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.39.2