about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-07 20:52:31 +0000
committerEric Wong <e@80x24.org>2019-10-16 00:29:46 +0000
commit2267b305f19ad87e7cc883aac789406580aae549 (patch)
treed2198bb9dd64540602838a6edb223858c1aefa81
parent0a5c3099d18d26970b778c9e74f2e27124dc1084 (diff)
downloadpublic-inbox-2267b305f19ad87e7cc883aac789406580aae549.tar.gz
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.
-rw-r--r--lib/PublicInbox/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index dc70d690..2b25cf01 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -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);