about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiRediff.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-13 07:00:36 +0000
committerEric Wong <e@80x24.org>2021-10-13 19:51:20 +0000
commit96b0a14be7e62742ad06f0a37c3cba61fe6c51e7 (patch)
tree2b1fcabfb1b23804c0d05424303f589d1d59a0f2 /lib/PublicInbox/LeiRediff.pm
parent6bb8478c8dacf83492de3afe15a615d646f0904f (diff)
downloadpublic-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/LeiRediff.pm')
-rw-r--r--lib/PublicInbox/LeiRediff.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiRediff.pm b/lib/PublicInbox/LeiRediff.pm
index 740cbcee..56c457fc 100644
--- a/lib/PublicInbox/LeiRediff.pm
+++ b/lib/PublicInbox/LeiRediff.pm
@@ -303,7 +303,6 @@ sub ipc_atfork_child {
         $self->{gits} = [ map {
                         PublicInbox::Git->new($lei->rel2abs($_))
                 } @{$self->{lei}->{opt}->{'git-dir'}} ];
-        $lei->{env}->{'psgi.errors'} = $lei->{2}; # ugh...
         $lei->{env}->{TMPDIR} = $self->{rdtmp}->dirname;
         if (my $nr = ($lei->{opt}->{drq} || $lei->{opt}->{'dequote-only'})) {
                 my $re = '\s*> ' x $nr;