From: Eric Wong Date: Sat, 3 Apr 2021 10:48:25 +0000 (+0000) Subject: lei tag: note message mismatches on failure X-Git-Tag: v1.7.0~828 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e8ad075ab7d02b260fdf8470e6d851ade4eac6fa;p=public-inbox.git lei tag: note message mismatches on failure Just exiting with a failure code and no error message is confusing :x --- diff --git a/lib/PublicInbox/LeiTag.pm b/lib/PublicInbox/LeiTag.pm index 06313139..c7a21c87 100644 --- a/lib/PublicInbox/LeiTag.pm +++ b/lib/PublicInbox/LeiTag.pm @@ -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 {