From: Eric Wong Date: Thu, 12 Aug 2021 23:40:27 +0000 (+0000) Subject: lei up: note errors if one output destination fails X-Git-Tag: v1.7.0~512 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=936641b6ae7d4a40b155adc5b016cf751897884a;p=public-inbox.git lei up: note errors if one output destination fails 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. --- diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 49b558fd..c5a01527 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -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 {