]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwAltId.pm
treewide: use warn() or carp() instead of env->{psgi.errors}
[public-inbox.git] / lib / PublicInbox / WwwAltId.pm
index bf8519848cc5015a15f1bd4b2aec9c9913ea6926..e107dfe06eafb3cbcc3183b73399210c36ea4781 100644 (file)
@@ -15,8 +15,7 @@ sub check_output {
        my ($r, $bref, $ctx) = @_;
        return html_oneshot($ctx, 500) if !defined($r);
        if ($r == 0) {
-               my $err = eval { $ctx->{env}->{'psgi.errors'} } // \*STDERR;
-               $err->print("unexpected EOF from sqlite3\n");
+               warn 'unexpected EOF from sqlite3';
                return html_oneshot($ctx, 501);
        }
        [200, [ qw(Content-Type application/gzip), 'Content-Disposition',