* [PATCH] lei up: improve error for multiple lei.q values
@ 2022-10-31 21:52 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-10-31 21:52 UTC (permalink / raw)
To: meta
Point users towards the lei.internal.rawstr variable which
may be tripping up handling of lei.q after `lei edit-search'.
---
lib/PublicInbox/LeiUp.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm
index 5ad21451..49917339 100644
--- a/lib/PublicInbox/LeiUp.pm
+++ b/lib/PublicInbox/LeiUp.pm
@@ -32,8 +32,10 @@ sub up1 ($$) {
my $rawstr = $lss->{-cfg}->{'lei.internal.rawstr'} //
(scalar(@$q) == 1 && substr($q->[0], -1) eq "\n");
if ($rawstr) {
- scalar(@$q) > 1 and
- die "$f: lei.q has multiple values (@$q) (out=$out)\n";
+ die <<EOM if scalar(@$q) > 1;
+$f: lei.q has multiple values (@$q) (out=$out)
+$f: while lei.internal.rawstr is set
+EOM
$lse->query_approxidate($lse->git, $mset_opt->{qstr} = $q->[0]);
} else {
$mset_opt->{qstr} = $lse->query_argv_to_string($lse->git, $q);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-31 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 21:52 [PATCH] lei up: improve error for multiple lei.q values Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).