From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AA0EB1F5B1 for ; Sat, 27 Jun 2020 10:04:00 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 02/34] inbox: warn on ->on_inbox_unlock exception Date: Sat, 27 Jun 2020 10:03:28 +0000 Message-Id: <20200627100400.9871-3-e@yhbt.net> In-Reply-To: <20200627100400.9871-1-e@yhbt.net> References: <20200627100400.9871-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Otherwise, we may never know what went wrong. --- lib/PublicInbox/Inbox.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 7d5e048363f..02186dac717 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 $@; } }