From c5ba366adec8f5b731467de4730574cf6d7fe84e Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Mon, 13 Oct 2025 12:11:13 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(error):=20add=20NoLabelsFound?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add `NoLabelsFound` error type to handle cases where no labels are found in the mailbox --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/error.rs b/src/error.rs index d43e3ee..2e80582 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,6 +12,9 @@ pub enum Error { /// Expansion of home directory in `{0}` failed #[error("Expansion of home directory in `{0}` failed")] HomeExpansionFailed(String), + /// No labels found in mailbox + #[error("No labels found in mailbox")] + NoLabelsFound, /// No rule selector specified (i.e. --id or --label) #[error("No rule selector specified (i.e. --id or --label)")] NoRuleSelector,