🐛 fix(error): add error type for no query string calculated

- add `NoQueryStringCalculated` error to handle cases where a query string could not be calculated for a given rule
This commit is contained in:
Jeremiah Russell
2025-10-10 22:40:06 +01:00
committed by Jeremiah Russell
parent 244158f538
commit 7ab715c848

View File

@@ -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),