chiark / gitweb /
Dgit.pm: Improve getcwd failure message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 1 Oct 2018 14:18:31 +0000 (15:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 1 Oct 2018 14:18:31 +0000 (15:18 +0100)
Don't print the pointless line number in Dgit.pm.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm

index 4b340d9..2e9fa64 100644 (file)
@@ -312,7 +312,7 @@ sub ensuredir ($) {
 
 sub must_getcwd () {
     my $d = getcwd();
-    defined $d or fail "getcwd failed: $!";
+    defined $d or fail "getcwd failed: $!\n";
     return $d;
 }