Skip to content

Commit f005593

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e19e2e commit f005593

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Documentation/lint-gitlink.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ sub report {
3030
my ($pos, $line, $target, $msg) = @_;
3131
substr($line, $pos) = "' <-- HERE";
3232
$line =~ s/^\s+//;
33-
print "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
34-
print "$ARGV:$.:\t'$line\n";
33+
print STDERR "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
34+
print STDERR "$ARGV:$.:\t'$line\n";
3535
$exit_code = 1;
3636
}
3737

Documentation/lint-man-end-blurb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
my $exit_code = 0;
77
sub report {
88
my ($target, $msg) = @_;
9-
print "error: $target: $msg\n";
9+
print STDERR "error: $target: $msg\n";
1010
$exit_code = 1;
1111
}
1212

Documentation/lint-man-section-order.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
my $exit_code = 0;
4747
sub report {
4848
my ($msg) = @_;
49-
print "$ARGV:$.: $msg\n";
49+
print STDERR "$ARGV:$.: $msg\n";
5050
$exit_code = 1;
5151
}
5252

0 commit comments

Comments
 (0)