chiark / gitweb /
Dgit.pm: failmsg: Remove all double newlines, not just the first
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 16:57:13 +0000 (17:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 19:09:02 +0000 (20:09 +0100)
I don't think this makes any difference with the current error
messages.

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

index 34e40a3b0ab684327533e868de48e95f7d4d241e..f68b7c9113404ae7fb46c0475daaaf90da5cdf31 100644 (file)
@@ -284,7 +284,7 @@ sub _us () {
 
 sub failmsg {
     my $s = "error: @_\n";
-    $s =~ s/\n\n$/\n/;
+    $s =~ s/\n\n$/\n/g;
     my $prefix = _us().": ";
     $s =~ s/^/$prefix/gm;
     return "\n".$s;