From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EDAD41F4BE for ; Mon, 7 Oct 2019 20:52:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] admin: show failing directory Date: Mon, 7 Oct 2019 20:52:31 +0000 Message-Id: <20191007205231.28313-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(-) 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);