chiark / gitweb /
playground refactor: Dgit.pm: fresh_playground: Improve error message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 07:30:09 +0000 (08:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 21:41:51 +0000 (22:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm

index 3abb174..c4a61af 100644 (file)
@@ -561,7 +561,7 @@ sub fresh_playground ($) {
     my ($spc) = @_;
     $spc = ensure_a_playground_parent $spc;
     rmtree $spc;
-    mkdir $spc or die "$spc $!";
+    mkdir $spc or fail "failed to mkdir the playground $spc: $!";
     return $playground = $spc;
 }