[devscripts] 01/01: bts: Fix make_path error handling for cache dir
James McCoy
jamessan at debian.org
Sun Dec 20 00:51:55 UTC 2015
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit 1100e034ba20421ae40a5918fd4644574e1d9454
Author: James McCoy <jamessan at debian.org>
Date: Sat Dec 19 19:51:03 2015 -0500
bts: Fix make_path error handling for cache dir
Signed-off-by: James McCoy <jamessan at debian.org>
---
scripts/bts.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/bts.pl b/scripts/bts.pl
index 80f6bba..ef84389 100755
--- a/scripts/bts.pl
+++ b/scripts/bts.pl
@@ -2210,8 +2210,8 @@ sub bts_cache {
my $err;
make_path($cachedir, { error => \$err });
if (@$err) {
- my $msg = join("\n", map { "couldn't mkdir $_->[0]: $_->[1]" } @$err);
- die "$progname: $msg\n";
+ my ($path, $msg) = each(%{$err->[0]});
+ die "$progname: couldn't mkdir $path: $msg\n";
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list