about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-21 21:10:22 +0000
committerEric Wong <e@80x24.org>2021-10-22 00:54:38 +0000
commitfdcc5d16c889790bb375fafa77d38b3585df6df6 (patch)
treecabee3633afc59af9b2241a9a114cd9fd00feeca /lib/PublicInbox
parent08b96c8dc9aa8cfd67a62fcfc3541bed14fce6bc (diff)
downloadpublic-inbox-fdcc5d16c889790bb375fafa77d38b3585df6df6.tar.gz
We don't want to lose the failure message in case note-event
fails.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiNoteEvent.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiNoteEvent.pm b/lib/PublicInbox/LeiNoteEvent.pm
index 1749c98f..0709754f 100644
--- a/lib/PublicInbox/LeiNoteEvent.pm
+++ b/lib/PublicInbox/LeiNoteEvent.pm
@@ -72,8 +72,7 @@ sub lei_note_event {
         my $lms = $lei->lms or return;
         $lms->lms_write_prepare if $new_cur eq ''; # for ->clear_src below
         $lei->{opt}->{quiet} = 1;
-        eval { $lms->arg2folder($lei, [ $folder ]) };
-        return if $@;
+        $lms->arg2folder($lei, [ $folder ]);
         my $state = $cfg->get_1("watch.$folder.state") // 'tag-rw';
         return if $state eq 'pause';
         return $lms->clear_src($folder, \$bn) if $new_cur eq '';