about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-21 07:41:58 +0000
committerEric Wong <e@80x24.org>2021-09-21 19:18:36 +0000
commit21fd0da3bcfba4d3564d262f88d3fd7479b6d5ee (patch)
tree06449fbff4a367539bba8334e853f86c0554b446 /lib/PublicInbox
parente532adecd4b3c687b3006bef20bb1f0e5d945c56 (diff)
downloadpublic-inbox-21fd0da3bcfba4d3564d262f88d3fd7479b6d5ee.tar.gz
I wanted to try --dedupe=none for something, but it failed
since I forgot --no-save :x  So hint users towards --no-save
if necessary.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiSavedSearch.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm
index 89f5c359..637456e4 100644
--- a/lib/PublicInbox/LeiSavedSearch.pm
+++ b/lib/PublicInbox/LeiSavedSearch.pm
@@ -94,7 +94,7 @@ sub translate_dedupe ($$$) {
         $dd //= '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 unsupported with --save");
+        $lei->fail("--dedupe=$dd requires --no-save");
 }
 
 sub up { # updating existing saved search via "lei up"
@@ -103,7 +103,7 @@ 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("--save was not used with $dst cwd=".
+                return $lei->fail("--no-save was used with $dst cwd=".
                                         $lei->rel2abs('.'));
         $self->{-cfg} = $lei->cfg_dump($f) // return $lei->fail;
         $self->{-ovf} = "$dir/over.sqlite3";