]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei up: note errors if one output destination fails
authorEric Wong <e@80x24.org>
Thu, 12 Aug 2021 23:40:27 +0000 (23:40 +0000)
committerEric Wong <e@80x24.org>
Fri, 13 Aug 2021 17:53:39 +0000 (17:53 +0000)
We can keep going if one (out of multiple) output destinations
fail, but the error needs to be communicated to the caller as an
exit code.

lib/PublicInbox/LeiUp.pm

index 49b558fdb2932f2be458e57c2489c8ec2ce2ca32..c5a01527d2b90043b51d24d6e1bc1aaf8e9a926e 100644 (file)
@@ -57,7 +57,7 @@ sub up1_redispatch {
                up1($l, $out);
                $l->qerr("# $out done");
        };
-       $l->err($@) if $@;
+       $l->child_error(1 << 8, $@) if $@;
 }
 
 sub lei_up {