diff options
author | Eric Wong <e@80x24.org> | 2021-10-13 07:00:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-13 19:51:20 +0000 |
commit | 96b0a14be7e62742ad06f0a37c3cba61fe6c51e7 (patch) | |
tree | 2b1fcabfb1b23804c0d05424303f589d1d59a0f2 /lib/PublicInbox/WwwAltId.pm | |
parent | 6bb8478c8dacf83492de3afe15a615d646f0904f (diff) | |
download | public-inbox-96b0a14be7e62742ad06f0a37c3cba61fe6c51e7.tar.gz |
treewide: use warn() or carp() instead of env->{psgi.errors}
Large chunks of our codebase and 3rd-party dependencies do not use ->{psgi.errors}, so trying to standardize on it was a fruitless endeavor. Since warn() and carp() are standard mechanism within Perl, just use that instead and simplify a bunch of existing code.
Diffstat (limited to 'lib/PublicInbox/WwwAltId.pm')
-rw-r--r-- | lib/PublicInbox/WwwAltId.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwAltId.pm b/lib/PublicInbox/WwwAltId.pm index bf851984..e107dfe0 100644 --- a/lib/PublicInbox/WwwAltId.pm +++ b/lib/PublicInbox/WwwAltId.pm @@ -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', |