lib/PublicInbox/LeiXSearch.pm | 5 +++-- diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index b6d7bf2b9521573281a23fea68a4c6c42a573a5a..709a3b3ab7ed4efe2177a922fe32e9576d51ba99 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -400,8 +400,9 @@ if ($lei->{-progress}) { my $tot = $lei->{-mset_total} // 0; my $nr = $lei->{-nr_write} // 0; if ($l2m) { - $lei->qfin("# $nr written to " . - "$lei->{ovv}->{dst} ($tot matches)"); + my $m = "# $nr written to " . + "$lei->{ovv}->{dst} ($tot matches)"; + $nr ? $lei->qfin($m) : $lei->qerr($m); } else { $lei->qerr("# $tot matches"); }