From 244158f53836a1c32f4629cfbaee780b72dd8b49 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 10 Oct 2025 16:15:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(error):=20add=20specific=20e?= =?UTF-8?q?rror=20for=20missing=20label=20in=20mailbox=20-=20add=20`LableN?= =?UTF-8?q?otFoundInMailbox`=20error=20to=20handle=20cases=20where=20a=20l?= =?UTF-8?q?abel=20is=20not=20found=20in=20the=20mailbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/error.rs b/src/error.rs index 26edba4..15ac27e 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 label found in the mailbox + #[error("Label {0} not found in the mailbox")] + LableNotFoundInMailbox(String), /// Rule not found for ID #[error("No rule for id {0}")] RuleNotFound(usize),