about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSavedSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-19 09:33:38 +0000
committerEric Wong <e@80x24.org>2021-10-19 17:29:16 +0000
commit95ae3c4a45435a8208a8f10b27c78329b5ad3e85 (patch)
treea5054d61dd913f4d56845248835b1898d5e5d183 /lib/PublicInbox/LeiSavedSearch.pm
parent8e91ad5eb95dff4070fa32242a59f373df8d9ff5 (diff)
downloadpublic-inbox-95ae3c4a45435a8208a8f10b27c78329b5ad3e85.tar.gz
This allows "lei up" to continue processing unrelated externals
if on output fails.
Diffstat (limited to 'lib/PublicInbox/LeiSavedSearch.pm')
-rw-r--r--lib/PublicInbox/LeiSavedSearch.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm
index 3e10f780..b2f1ad10 100644
--- a/lib/PublicInbox/LeiSavedSearch.pm
+++ b/lib/PublicInbox/LeiSavedSearch.pm
@@ -96,7 +96,7 @@ sub translate_dedupe ($$) {
         my $dd = $lei->{opt}->{dedupe} // 'content';
         return 1 if $dd eq 'content'; # the default
         return $self->{"-dedupe_$dd"} = 1 if ($dd eq 'oid' || $dd eq 'mid');
-        $lei->fail("--dedupe=$dd requires --no-save");
+        die("--dedupe=$dd requires --no-save\n");
 }
 
 sub up { # updating existing saved search via "lei up"
@@ -105,9 +105,9 @@ sub up { # updating existing saved search via "lei up"
         my $self = bless { ale => $lei->ale }, $cls;
         my $dir = $dst;
         output2lssdir($self, $lei, \$dir, \$f) or
-                return $lei->fail("--no-save was used with $dst cwd=".
-                                        $lei->rel2abs('.'));
-        $self->{-cfg} = $lei->cfg_dump($f) // return $lei->fail;
+                return die("--no-save was used with $dst cwd=".
+                                        $lei->rel2abs('.')."\n");
+        $self->{-cfg} = $lei->cfg_dump($f) // return $lei->child_error;
         $self->{-ovf} = "$dir/over.sqlite3";
         $self->{'-f'} = $f;
         $self->{lock_path} = "$self->{-f}.flock";