diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-05-22 15:28:18 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-01 22:37:38 +0100 |
commit | c225785cc31e19f449fcfa903442b3ad2987a4d5 (patch) | |
tree | 5b2c77d992e007eef3abf5a404b26c070d37284b /dgit | |
parent | 77eac3a8653b073670f500dbc173aee45577c032 (diff) |
Print better error message (with `fail' rather than `die') if `dgit clone' cannot create the destination directory.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |