From: Eric Wong Date: Sat, 30 Apr 2022 21:04:12 +0000 (+0000) Subject: lei: improve diagnosis of errors from children X-Git-Tag: v1.9.0~128 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=ec8af85ec73346e243624b2ddad2d3723fde704d lei: improve diagnosis of errors from children Not 100% sure what's going on, but maybe this helps. --- diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 89aa4119..d81ca296 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1394,7 +1394,7 @@ sub wq_done_wait { # dwaitpid callback local $current_lei = $lei; my $err_type = $lei->{-err_type}; $? and $lei->child_error($?, - $err_type ? "$err_type errors during $lei->{cmd}" : ()); + $err_type ? "$err_type errors during $lei->{cmd} \$?=$?" : ()); $lei->dclose; }