From 2267b305f19ad87e7cc883aac789406580aae549 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Oct 2019 20:52:31 +0000 Subject: admin: show failing directory 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Admin.pm') 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); -- cgit v1.2.3-24-ge0c7