This prevents noisy errors in syslog when running t/lei-watch.t
---
 lib/PublicInbox/LeiAddWatch.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/PublicInbox/LeiAddWatch.pm b/lib/PublicInbox/LeiAddWatch.pm
index 671d54f92467..97e7a3422897 100644
--- a/lib/PublicInbox/LeiAddWatch.pm
+++ b/lib/PublicInbox/LeiAddWatch.pm
@@ -34,6 +34,8 @@ sub lei_add_watch {
                next if defined $cfg->{"watch.$w.state"};
                $lei->_config("watch.$w.state", $state);
        }
+       $lei->_lei_store(1); # create
+       $lei->lms(1)->lms_write_prepare->add_folders(@{$self->{inputs}});
        delete $lei->{cfg}; # force reload
        $lei->refresh_watches;
 }
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/

Reply via email to