From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E949C1F5AE; Fri, 28 May 2021 09:37:40 +0000 (UTC) Date: Fri, 28 May 2021 09:37:40 +0000 From: Eric Wong To: meta@public-inbox.org Subject: Re: [PATCH 5/6] lei: handle a single IMAP message in most places Message-ID: <20210528093740.GB18768@dcvr> References: <20210528000757.20500-1-e@80x24.org> <20210528000757.20500-6-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210528000757.20500-6-e@80x24.org> List-Id: Eric Wong wrote: > v2: enforce UID in URL, fail without Pushed v3 as commit 9b3cd5e254fafa08c774a24f85c2b2eac12a9de5 v3: fix error reporting (s/fail/child_error/) Using ->fail was causing errors to cascade elsewhere, not 100% sure why... interdiff: diff -u b/lib/PublicInbox/LeiLcat.pm b/lib/PublicInbox/LeiLcat.pm --- b/lib/PublicInbox/LeiLcat.pm +++ b/lib/PublicInbox/LeiLcat.pm @@ -28,7 +28,7 @@ require PublicInbox::URIimap; $u = PublicInbox::URIimap->new($u); defined($u->uid) ? lcat_imap_uid_uri($lei, $u) : - $lei->fail("# no UID= in $u"); + $lei->child_error(1 << 8, "# no UID= in $u"); '""'; # blank query, using {lcat_blob} } elsif ($x =~ m!\b([a-z]+?://\S+)!i) { my $u = $1;