about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiUp.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-12 23:40:27 +0000
committerEric Wong <e@80x24.org>2021-08-13 17:53:39 +0000
commit936641b6ae7d4a40b155adc5b016cf751897884a (patch)
tree1b0c440bd8a193dbbe00ade1be7e0e1385fbd490 /lib/PublicInbox/LeiUp.pm
parent3b97efd2547c78803c060c6f02a7a2a7c9611e60 (diff)
downloadpublic-inbox-936641b6ae7d4a40b155adc5b016cf751897884a.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r--lib/PublicInbox/LeiUp.pm2
1 files changed, 1 insertions, 1 deletions
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 {