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 3abb1748949255e11e5eb32e40ee77afb36c37bc..c4a61af1f081b62f21938ac86783a0deef000286 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;
 }