send-email: visually distinguish sendmail aliases parser warnings
Although emitted to stderr, warnings from the sendmail aliases parser are not visually distinguished as such, and thus can easily be overlooked in the normal noisy send-email output. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Eric Sunshine committed
May 31, 2015 at 18:29 UTC
818a2d7722de03a16177e2323fa7b77624722e2a
1 file changed
+3
-3
git-send-email.perl
+3
-3
@@ -522,12 +522,12 @@ my %parse_alias = (
522
523
# warn on lines that contain quotes
524
elsif (/"/) {
525
- print STDERR "sendmail alias with quotes is not supported: $_\n";
525
+ print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
526
}
527
528
# warn on lines that continue
529
elsif (/^\s|\\$/) {
530
- print STDERR "sendmail continuation line is not supported: $_\n";
530
+ print STDERR "warning: sendmail continuation line is not supported: $_\n";
531
}
532
533
# recognize lines that look like an alias
@@ -538,7 +538,7 @@ my %parse_alias = (
538
539
# warn on lines that are not recognized
540
else {
541
- print STDERR "sendmail line is not recognized: $_\n";
541
+ print STDERR "warning: sendmail line is not recognized: $_\n";
542
}}},
543
544
gnus => sub { my $fh = shift; while (<$fh>) {