about summary refs log tree commit homepage
path: root/lib/PublicInbox/CodeSearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-24 11:44:27 +0000
committerEric Wong <e@80x24.org>2023-10-24 20:04:28 +0000
commitb32f0448c40db9a8bee6f90c566cdc5f4ffad35a (patch)
tree0dcbe87a79658d698deb5c7330c92d9185426588 /lib/PublicInbox/CodeSearchIdx.pm
parent35de8fdcbf290e25cae479ad2afdf6f13836d5d8 (diff)
downloadpublic-inbox-b32f0448c40db9a8bee6f90c566cdc5f4ffad35a.tar.gz
This functionality still needs to be fleshed out, but we
definitely can't associate coderepos to inboxes if we don't have
any inboxes as candidates.
Diffstat (limited to 'lib/PublicInbox/CodeSearchIdx.pm')
-rw-r--r--lib/PublicInbox/CodeSearchIdx.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm
index 36d00aea..2d1d8b22 100644
--- a/lib/PublicInbox/CodeSearchIdx.pm
+++ b/lib/PublicInbox/CodeSearchIdx.pm
@@ -930,9 +930,8 @@ sub init_associate_postfork ($) {
         require_progs('associate', join => \@JOIN);
         $QRY_STR = $self->{-opt}->{'associate-date-range'} // '1.year.ago..';
         substr($QRY_STR, 0, 0) = 'dt:';
-        scalar(@{$self->{git_dirs} //  []}) or die <<EOM;
-E: no coderepos to associate
-EOM
+        @{$self->{git_dirs} // []} or die "E: no coderepos to associate\n";
+        @IBX or die "E: no inboxes to associate\n";
         my $approx_git = PublicInbox::Git->new($self->{git_dirs}->[0]); # ugh
         $self->query_approxidate($approx_git, $QRY_STR); # in-place
         $TODO{associate} = PublicInbox::OnDestroy->new($$, \&associate, $self);