summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-05-22 15:28:18 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-01 22:37:38 +0100
commitc225785cc31e19f449fcfa903442b3ad2987a4d5 (patch)
tree5b2c77d992e007eef3abf5a404b26c070d37284b /dgit
parent77eac3a8653b073670f500dbc173aee45577c032 (diff)
Print better error message (with `fail' rather than `die') if `dgit clone' cannot create the destination directory.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index 507be27..9bdd207 100755
--- a/dgit
+++ b/dgit
@@ -1706,7 +1706,7 @@ sub clone ($) {
canonicalise_suite();
badusage "dry run makes no sense with clone" unless act_local();
my $hasgit = check_for_git();
- mkdir $dstdir or die "$dstdir $!";
+ mkdir $dstdir or fail "create \`$dstdir': $!";
changedir $dstdir;
runcmd @git, qw(init -q);
my $giturl = access_giturl(1);