about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-24 19:15:26 -0400
committerEric Wong <e@80x24.org>2021-04-25 15:22:24 -0400
commitd04a5a1eb026fa740e330d2b64af17d80e746624 (patch)
treed25f5568ccd59f854cd0bb651de4075ccd74400e /lib/PublicInbox/LeiXSearch.pm
parentcf2265059f7cc6187fd35bad50fa7febe8facac1 (diff)
downloadpublic-inbox-d04a5a1eb026fa740e330d2b64af17d80e746624.tar.gz
This makes "lei up --all=local" output easier-to-understand
when it's updating multiple saved searches.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index e1538391..018b60f9 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -354,7 +354,9 @@ sub query_done { # EOF callback for main daemon
         }
         my $wait = $lei->{sto} ? $lei->{sto}->ipc_do('done') : undef;
         $lei->{ovv}->ovv_end($lei);
+        my @out;
         if ($l2m) { # close() calls LeiToMail reap_compress
+                @out = (" in $lei->{ovv}->{dst}");
                 if (my $out = delete $lei->{old_1}) {
                         if (my $mbout = $lei->{1}) {
                                 close($mbout) or return $lei->fail(<<"");
@@ -372,7 +374,7 @@ Error closing $lei->{ovv}->{dst}: $!
                 }
         }
         $lei->{-progress} and
-                $lei->err('# ', $lei->{-mset_total} // 0, " matches");
+                $lei->err('# ', $lei->{-mset_total} // 0, " matches", @out);
         $lei->dclose;
 }