]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
admin: warn and ignore inaccessible inboxes
[public-inbox.git] / lib / PublicInbox / Admin.pm
index 6e710cd59794f485faefd9973b3f1f0818da3489..dc70d690b8f4cd25b5bb5f3f0d056102594df961 100644 (file)
@@ -101,7 +101,14 @@ sub resolve_inboxes ($;$) {
                $cfg->each_inbox(sub {
                        my ($ibx) = @_;
                        $ibx->{version} ||= 1;
-                       $dir2ibx{abs_path($ibx->{mainrepo})} = $ibx;
+                       my $path = abs_path($ibx->{mainrepo});
+                       if (defined($path)) {
+                               $dir2ibx{$path} = $ibx;
+                       } else {
+                               warn <<EOF;
+W: $ibx->{name} $ibx->{mainrepo}: $!
+EOF
+                       }
                });
        }
        if ($opt->{all}) {