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 | |
parent | 77eac3a8653b073670f500dbc173aee45577c032 (diff) |
Print better error message (with `fail' rather than `die') if `dgit clone' cannot create the destination directory.
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | dgit | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 4c9e290..1309610 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ dgit (1.5~~) unstable; urgency=medium directory before running rmtree on it. Closes:#796773. * Do not call "warn" on failure of cleanup handler in END block (since warn has been made fatal and aborts the cleanup chain). + * Print better error message (with `fail' rather than `die') if + `dgit clone' cannot create the destination directory. Test suite: * When sbuild fails, do not crash due to sed not finding the log @@ -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); |