From 6bb8478c8dacf83492de3afe15a615d646f0904f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 07:00:35 +0000 Subject: lei: use standard warn() in more places warn() is easier to augment with context information, and frankly unavoidable in the presence of 3rd-party libraries we don't control. --- lib/PublicInbox/LeiInput.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiInput.pm') diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm index 83479221..6a90e7e1 100644 --- a/lib/PublicInbox/LeiInput.pm +++ b/lib/PublicInbox/LeiInput.pm @@ -343,8 +343,8 @@ $input is `eml', not --in-format=$in_fmt --mail-sync specified but no inputs support it # non-fatal if some inputs support support sync - $lei->err("# --mail-sync will only be used for @{$sync->{ok}}"); - $lei->err("# --mail-sync is not supported for: @{$sync->{no}}"); + warn("# --mail-sync will only be used for @{$sync->{ok}}\n"); + warn("# --mail-sync is not supported for: @{$sync->{no}}\n"); } if ($net) { $net->{-can_die} = 1; -- cgit v1.2.3-24-ge0c7