]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: show child error error code
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:32:03 +0000 (05:32 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:38:57 +0000 (23:38 +0000)
Just passing the exit value of the child process isn't to
our parent process isn't very useful when multiple commands
are failing at once.

lib/PublicInbox/LeiMirror.pm

index 4464b6b109b9bc1884c6a3d1a8cd73d29980927f..8b276336f288258a4a45a385ee37ee325802b384 100644 (file)
@@ -602,7 +602,7 @@ sub reap_cmd { # async, called via SIGCHLD
        $? = 0; # don't let it influence normal exit
        if ($cerr) {
                kill('TERM', keys %$LIVE);
-               $self->{lei}->child_error($cerr, "@$cmd failed");
+               $self->{lei}->child_error($cerr, "@$cmd failed (\$?=$cerr)");
        }
 }