From 3dc9f9ca80c8a9f42ae7c674dd78d59ba062a87c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Jul 2016 18:20:44 +0000 Subject: http: drop extra newline in error message We already add the extra newline when we call print. --- lib/PublicInbox/HTTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/HTTP.pm') diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 17f89302..fa34b443 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -335,7 +335,7 @@ sub write_err { my ($self, $len) = @_; my $err = $self->{httpd}->{env}->{'psgi.errors'}; my $msg = $! || '(zero write)'; - $msg .= " ($len bytes remaining)\n" if defined $len; + $msg .= " ($len bytes remaining)" if defined $len; $err->print("error buffering to input: $msg\n"); quit($self, 500); } -- cgit v1.2.3-24-ge0c7