From: Eric Wong Date: Thu, 9 Nov 2023 10:09:41 +0000 (+0000) Subject: lei_mirror: note missing local manifests are non-fatal X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2998570b415c44815b2301ba13d63a4746226f0f;p=thirdparty%2Fpublic-inbox.git lei_mirror: note missing local manifests are non-fatal Sometimes seeing that warning is alarming. --- diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 49febe9ed..84266d03b 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -950,10 +950,11 @@ sub load_current_manifest ($) { if (CORE::open(my $fh, '<', $fn)) { decode_manifest($fh, $fn, $fn); } elsif ($!{ENOENT}) { # non-fatal, we can just do it slowly - warn "open($fn): $!\n" if !$self->{-initial_clone}; + $self->{-initial_clone} or + warn "W: open($fn): $! (non-fatal)\n"; undef; } else { - die "open($fn): $!\n"; + die "E: open($fn): $!\n"; } }