about summary refs log tree commit homepage
path: root/lib/PublicInbox/Fetch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-13 07:00:35 +0000
committerEric Wong <e@80x24.org>2021-10-13 19:51:18 +0000
commit6bb8478c8dacf83492de3afe15a615d646f0904f (patch)
tree0e1aaf64816b118f4890509b86caf043e4c7fa7c /lib/PublicInbox/Fetch.pm
parent759493eb1eb737e9dedd30b8280bc4067077c615 (diff)
downloadpublic-inbox-6bb8478c8dacf83492de3afe15a615d646f0904f.tar.gz
warn() is easier to augment with context information, and
frankly unavoidable in the presence of 3rd-party libraries
we don't control.
Diffstat (limited to 'lib/PublicInbox/Fetch.pm')
-rw-r--r--lib/PublicInbox/Fetch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Fetch.pm b/lib/PublicInbox/Fetch.pm
index 5ada1f49..e5756fb6 100644
--- a/lib/PublicInbox/Fetch.pm
+++ b/lib/PublicInbox/Fetch.pm
@@ -52,7 +52,7 @@ sub do_manifest ($$$) {
                 $m0 = eval {
                         PublicInbox::LeiMirror::decode_manifest($fh, $mf, $mf)
                 };
-                $lei->err($@) if $@;
+                warn($@) if $@;
         }
         my ($bn) = ($fn =~ m!/([^/]+)\z!);
         my $curl_cmd = $lei->{curl}->for_uri($lei, $muri, qw(-R -o), $bn);