]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ipc: note failing sub name
authorEric Wong <e@80x24.org>
Wed, 10 Nov 2021 10:28:37 +0000 (10:28 +0000)
committerEric Wong <e@80x24.org>
Wed, 10 Nov 2021 18:38:13 +0000 (18:38 +0000)
Hopefully problems can get diagnosed more quickly with
the sub name in the error message.

lib/PublicInbox/IPC.pm

index 3e299448b334629fb6427e7df02976381ec19242..8376275e3c9501c52366b08b7eda7fe4024b5d49 100644 (file)
@@ -247,7 +247,7 @@ sub recv_and_run {
        undef $buf;
        my $sub = shift @$args;
        eval { $self->$sub(@$args) };
-       warn "$$ $0 wq_worker: $@" if $@;
+       warn "$$ $0 wq_worker: $sub: $@" if $@;
        delete @$self{0..($nfd-1)};
        $n;
 }