✨ feat(error): add invalid message age error
- add `InvalidMessageAge` error variant to the `Error` enum - include a message parameter to provide details about the invalid age
This commit is contained in:
committed by
Jeremiah Russell
parent
c40e4dfa86
commit
32db9cb51a
@@ -48,4 +48,7 @@ pub enum Error {
|
|||||||
/// Error from config
|
/// Error from config
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Config(#[from] config::ConfigError),
|
Config(#[from] config::ConfigError),
|
||||||
|
/// Invalid message age specification
|
||||||
|
#[error("Invalid message age: {0}")]
|
||||||
|
InvalidMessageAge(String),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user