diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-10-01 15:27:56 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-10-01 15:29:10 +0100 |
commit | f7a2d017449c7877b095b5761aedef5e5b29c458 (patch) | |
tree | c12384465227625be2ac0505abf400fa9374722c /Debian | |
parent | f8202c5af8682e4e5779aefad8e1c1392f438e89 (diff) |
Dgit.pm: Improve symlink failure message
Use fail rather than die, and print a newline. This is used sometimes
to link origs etc. Hopefully if this fails the user will know why.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Dgit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index d2484f9..fc146a3 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -422,7 +422,7 @@ sub link_ltarget ($$) { } my $r = link $old, $new; $r = symlink $old, $new if !$r && $!==EXDEV; - $r or die "(sym)link $old $new: $!"; + $r or fail "(sym)link $old $new: $!\n"; } sub hashfile ($) { |