diff options
author | Eric Wong <e@80x24.org> | 2021-10-13 07:00:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-13 19:51:18 +0000 |
commit | 6bb8478c8dacf83492de3afe15a615d646f0904f (patch) | |
tree | 0e1aaf64816b118f4890509b86caf043e4c7fa7c /lib/PublicInbox/LeiMailSync.pm | |
parent | 759493eb1eb737e9dedd30b8280bc4067077c615 (diff) | |
download | public-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/LeiMailSync.pm')
-rw-r--r-- | lib/PublicInbox/LeiMailSync.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiMailSync.pm b/lib/PublicInbox/LeiMailSync.pm index f7e37ad9..f2f1e3ed 100644 --- a/lib/PublicInbox/LeiMailSync.pm +++ b/lib/PublicInbox/LeiMailSync.pm @@ -466,7 +466,7 @@ sub arg2folder { # using `$res' instead of `$orig' EOM } else { - $lei->err($res) if defined $res; + warn($res, "\n") if defined $res; push @no, $orig; } } elsif (m!\A(?:nntps?|s?news)://!i) { @@ -478,7 +478,7 @@ EOM # using `$res' instead of `$orig' EOM } else { - $lei->err($res) if defined $res; + warn($res, "\n") if defined $res; push @no, $orig; } } else { |