From e8ad075ab7d02b260fdf8470e6d851ade4eac6fa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 3 Apr 2021 10:48:25 +0000 Subject: [PATCH] lei tag: note message mismatches on failure Just exiting with a failure code and no error message is confusing :x --- lib/PublicInbox/LeiTag.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.44.0