feat(error): add NoLabelsFound error

- add `NoLabelsFound` error type to handle cases where no labels are found in the mailbox
This commit is contained in:
Jeremiah Russell
2025-10-13 12:11:13 +01:00
committed by Jeremiah Russell
parent 946398380b
commit c5ba366ade

View File

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