From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 43C532070D; Fri, 8 Jul 2016 18:20:44 +0000 (UTC) Date: Fri, 8 Jul 2016 18:20:44 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/1] http: drop extra newline in error message Message-ID: <20160708182044.GA24300@dcvr.yhbt.net> References: <20160707201212.32316-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160707201212.32316-1-e@80x24.org> List-Id: We already add the extra newline when we call print. --- lib/PublicInbox/HTTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 17f8930..fa34b44 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); } -- EW