]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: improve diagnosis of errors from children
authorEric Wong <e@80x24.org>
Sat, 30 Apr 2022 21:04:12 +0000 (21:04 +0000)
committerEric Wong <e@80x24.org>
Mon, 2 May 2022 09:03:41 +0000 (09:03 +0000)
Not 100% sure what's going on, but maybe this helps.

lib/PublicInbox/LEI.pm

index 89aa4119aef22f4868f9f738a0e7e516b3c42119..d81ca296250b493f4e05e1c00bcd2b7bb74781c3 100644 (file)
@@ -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;
 }