diff options
author | Eric Wong <e@yhbt.net> | 2020-06-27 10:03:28 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-28 22:27:07 +0000 |
commit | 6adbc635ea6ab754462c74c1056a40eb68c6c78e (patch) | |
tree | 93f49484e843b4260cbfd8adc936e27ce7654a6c /lib/PublicInbox/Inbox.pm | |
parent | 495cf373f4f8247391f44ebfd44fe03ddb0c1966 (diff) | |
download | public-inbox-6adbc635ea6ab754462c74c1056a40eb68c6c78e.tar.gz |
inbox: warn on ->on_inbox_unlock exception
Otherwise, we may never know what went wrong.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 7d5e0483..02186dac 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -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 $@; } } |