From 7ab715c848f22b8b97093e6a6a0bd27b1834390b Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 10 Oct 2025 22:40:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(error):=20add=20error=20type?= =?UTF-8?q?=20for=20no=20query=20string=20calculated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add `NoQueryStringCalculated` error to handle cases where a query string could not be calculated for a given rule --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/error.rs b/src/error.rs index 15ac27e..ccc95f4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,6 +18,9 @@ pub enum Error { /// No rule for label #[error("No rule for label {0}")] NoRuleFoundForLabel(String), + /// No rule for label + #[error("No query string calculated for rule #{0}")] + NoQueryStringCalculated(usize), /// No label found in the mailbox #[error("Label {0} not found in the mailbox")] LableNotFoundInMailbox(String),