]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei tag: note message mismatches on failure
authorEric Wong <e@80x24.org>
Sat, 3 Apr 2021 10:48:25 +0000 (10:48 +0000)
committerEric Wong <e@80x24.org>
Sat, 3 Apr 2021 18:38:46 +0000 (18:38 +0000)
Just exiting with a failure code and no error message is
confusing :x

lib/PublicInbox/LeiTag.pm

index 06313139775446ca592ffbeeab380f16b57650b6..c7a21c87dfa77eef8489b012efa87f7a6dd6a232 100644 (file)
@@ -121,7 +121,8 @@ sub lei_tag { # the "lei tag" method
 
 sub note_missing {
        my ($self) = @_;
-       $self->{lei}->child_error(1 << 8) if $self->{missing};
+       my $n = $self->{missing} or return;
+       $self->{lei}->child_error(1 << 8, "$n missed messages");
 }
 
 sub ipc_atfork_child {