fix: handle io and RwLock error for bot manager
This commit is contained in:
parent
8fed0daf4c
commit
8e3c647727
@ -159,6 +159,8 @@ pub enum BotError {
|
||||
BotLogicError(String),
|
||||
AdminMisconfiguration(String),
|
||||
ScriptError(#[from] ScriptError),
|
||||
IoError(#[from] std::io::Error),
|
||||
RwLockError(String),
|
||||
}
|
||||
|
||||
pub type BotResult<T> = Result<T, BotError>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user