diff options
author | Eric Wong <e@80x24.org> | 2021-10-16 01:01:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-16 01:42:53 +0000 |
commit | 90fb7620d92d82b5825051bf81731d4a6513e5d0 (patch) | |
tree | 8aae08eba24a97c3b798da856e38e2699009f57e /lib/PublicInbox/LEI.pm | |
parent | 3688ac90abfaa8ad55b0767202aebcc8e2d02147 (diff) | |
download | public-inbox-90fb7620d92d82b5825051bf81731d4a6513e5d0.tar.gz |
lei_overview: die rather than lei->fail
This will make our code more flexible in case it gets used in non-lei things.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 511b2c1d..876598f9 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1108,7 +1108,7 @@ sub accept_dispatch { # Listener {post_accept} callback my %env = map { split(/=/, $_, 2) } splice(@argv, $argc); $self->{env} = \%env; eval { dispatch($self, @argv) }; - send($sock, $@, MSG_EOR) if $@; + $self->fail($@) if $@; } sub dclose { |