]> Sergey Matveev's repositories - public-inbox.git/commitdiff
admin: show failing directory
authorEric Wong <e@80x24.org>
Mon, 7 Oct 2019 20:52:31 +0000 (20:52 +0000)
committerEric Wong <e@80x24.org>
Wed, 16 Oct 2019 00:29:46 +0000 (00:29 +0000)
Since public-inbox-index may be run against a large list of
(intended) inboxes from the command-line, it's helpful to show
which directory fails the resolution.

lib/PublicInbox/Admin.pm

index dc70d690b8f4cd25b5bb5f3f0d056102594df961..2b25cf0112d9bc99fab402c989e581e4d17203c0 100644 (file)
@@ -35,7 +35,7 @@ sub resolve_repo_dir {
                        local $/;
                        <$fh>;
                };
-               close $fh or die "error in $cmd: $!\n";
+               close $fh or die "error in $cmd (cwd:$cd): $!\n";
                chomp $dir;
                $$ver = 1 if $ver;
                return abs_path($cd) if ($dir eq '.' && defined $cd);