From f7eb00e6312d1f48b3646a4856dd849a5d0c5a0b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 19 Oct 2021 09:33:39 +0000 Subject: lei up: propagate redispatch_all failure via exit code We can still continue with some local externals, maybe; but the error needs to be propagated to the calling process for scripting purposes. --- lib/PublicInbox/LeiUp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 4fd0290c..fcdd535d 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -124,7 +124,7 @@ sub net_merge_all_done { $lei->{net} = delete($self->{-net_new}) if $self->{-net_new}; $self->wq_close; eval { redispatch_all($self, $lei) }; - warn "E: $@" if $@; + $lei->child_error(0, "E: $@") if $@; } sub _complete_up { # lei__complete hook -- cgit v1.2.3-24-ge0c7