Commit f0c27947 authored by Rémi Duraffort's avatar Rémi Duraffort

During the compilation, print errors and warnings on stderr.

parent 54c23b66
......@@ -63,13 +63,13 @@ while(<STDIN>)
$line =~ s/(.*):([0-9]*):\swarning\:(.*)/WARNING : $file$1: $lineno$2: $warn$3/g ||
$line =~ s/.*is\sdeprecated.*/WARNING : $line/g )
{
print $warn.$line.$reset."\n";
print STDERR $warn.$line.$reset."\n";
}
# Error
elsif (
$line =~ s/(.*):([0-9]*):\serror\:(.*)/ERROR : $file$1: $lineno$2: $error$3/g )
{
print $error.$line.$reset."\n";
print STDERR $error.$line.$reset."\n";
}
# Print unmatched lines
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment