about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-13 20:53:54 +0000
committerEric Wong <e@80x24.org>2021-09-13 21:11:15 +0000
commitaaadf0fad545bc9d2784cff265b90827799d1f22 (patch)
tree25f9604baa4b2459677589d6947f8f80915d53cd /lib/PublicInbox/LeiXSearch.pm
parentbd45b7f640382cfaa585845018bd95adc0f32ce1 (diff)
downloadpublic-inbox-aaadf0fad545bc9d2784cff265b90827799d1f22.tar.gz
I've been creating and destroying lots of externals, lately...
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 9f7f3885..556ffd58 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -572,8 +572,11 @@ sub prepare_external {
                 die "`\\n' not allowed in `$loc'\n" if index($loc, "\n") >= 0;
                 require PublicInbox::Inbox; # v2, v1
                 $loc = bless { inboxdir => $loc }, 'PublicInbox::Inbox';
+        } elsif (!-e $loc) {
+                warn "W: $loc gone, perhaps run: lei forget-external $loc\n";
+                return;
         } else {
-                warn "W: ignoring $loc, unable to determine type\n";
+                warn "W: $loc ignored, unable to determine external type\n";
                 return;
         }
         push @{$self->{locals}}, $loc;