doc lint: emit errors on STDERR

Have all of the scripts invoked by "make check-docs" emit their output
on STDERR. This does not currently matter due to the way we're
invoking them, but will in a subsequent change. It's a good idea to do
this in any case for consistency with other tools we invoke.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2021-10-15 14:39:12 +02:00
committed by Junio C Hamano
parent 7e19e2efa9
commit f005593dc3
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ my $SECTION_RX = do {
my $exit_code = 0;
sub report {
my ($msg) = @_;
print "$ARGV:$.: $msg\n";
print STDERR "$ARGV:$.: $msg\n";
$exit_code = 1;
}