about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-08 20:07:47 +0000
committerEric Wong <e@80x24.org>2021-08-09 06:20:22 +0000
commit0bbfa2553c63fafca3a502a887c575bd8d401a0a (patch)
treee71d9174ec1a8851548de3f312ca76649a8bb4df /lib/PublicInbox/LeiXSearch.pm
parentc951a8ee25edd8489ce127acd8b2caf54e6dad6f (diff)
downloadpublic-inbox-0bbfa2553c63fafca3a502a887c575bd8d401a0a.tar.gz
Displaying $! can help users diagnose resource limit problems
such as EMFILE/ENFILE/ENOMEM.  $@ is currently useful for XS
Search::Xapian and perhaps future versions of the Xapian.pm SWIG
bindings.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 3414e87d..393f25bf 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -32,7 +32,7 @@ sub attach_external {
         my ($self, $ibxish) = @_; # ibxish = ExtSearch or Inbox
         my $desc = $ibxish->{inboxdir} // $ibxish->{topdir};
         my $srch = $ibxish->search or
-                return warn("$desc not indexed for Xapian\n");
+                return warn("$desc not indexed for Xapian ($@ $!)\n");
         my @shards = $srch->xdb_shards_flat or
                 return warn("$desc has no Xapian shards\n");