✨ 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:
committed by
Jeremiah Russell
parent
946398380b
commit
c5ba366ade
@@ -12,6 +12,9 @@ pub enum Error {
|
|||||||
/// Expansion of home directory in `{0}` failed
|
/// Expansion of home directory in `{0}` failed
|
||||||
#[error("Expansion of home directory in `{0}` failed")]
|
#[error("Expansion of home directory in `{0}` failed")]
|
||||||
HomeExpansionFailed(String),
|
HomeExpansionFailed(String),
|
||||||
|
/// No labels found in mailbox
|
||||||
|
#[error("No labels found in mailbox")]
|
||||||
|
NoLabelsFound,
|
||||||
/// No rule selector specified (i.e. --id or --label)
|
/// No rule selector specified (i.e. --id or --label)
|
||||||
#[error("No rule selector specified (i.e. --id or --label)")]
|
#[error("No rule selector specified (i.e. --id or --label)")]
|
||||||
NoRuleSelector,
|
NoRuleSelector,
|
||||||
|
|||||||
Reference in New Issue
Block a user