]> Sergey Matveev's repositories - public-inbox.git/commitdiff
inbox: warn on ->on_inbox_unlock exception
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:03:28 +0000 (10:03 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:27:07 +0000 (22:27 +0000)
Otherwise, we may never know what went wrong.

lib/PublicInbox/Inbox.pm

index 7d5e048363f4c854cd17940d9af3aec0efc55e84..02186dac717fa329b6fb508d8eeab2c18919bca0 100644 (file)
@@ -421,6 +421,7 @@ sub on_unlock {
        my $subs = $self->{unlock_subs} or return;
        for (values %$subs) {
                eval { $_->on_inbox_unlock($self) };
+               warn "E: $@ ($self->{inboxdir})\n" if $@;
        }
 }