From: Eric Wong Date: Sat, 7 Jun 2025 19:48:36 +0000 (+0000) Subject: lei_saved_search: show errno on ->flush failure X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b835ef1180618f27908a541f4fc5c2cf5a6bd94;p=thirdparty%2Fpublic-inbox.git lei_saved_search: show errno on ->flush failure ->flush failures need to describe the nature of the failure, not just the failing handle. --- diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm index 574cf9aa8..aed8b0c9c 100644 --- a/lib/PublicInbox/LeiSavedSearch.pm +++ b/lib/PublicInbox/LeiSavedSearch.pm @@ -89,7 +89,7 @@ sub list { my $p = "$lss_dir/$d/lei.saved-search"; say $fh "\tpath = ", cquote_val($p) if -f $p; } - $fh->flush or die "flush: $fh"; + $fh->flush or die "$fh->flush: $!"; my $cfg = $lei->cfg_dump($fh->filename); my $out = $cfg ? $cfg->get_all('lei.q.output') : []; s!$LOCAL_PFX!! for @$out;