From c225785cc31e19f449fcfa903442b3ad2987a4d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 22 May 2016 15:28:18 +0100 Subject: Print better error message (with `fail' rather than `die') if `dgit clone' cannot create the destination directory. --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dgit') 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); -- cgit v1.2.3