refactor wip
This commit is contained in:
@@ -31,6 +31,8 @@ pub enum SupervisorError {
|
||||
/// Zinit client operation error
|
||||
ZinitError(String),
|
||||
SupervisorNotConfigured,
|
||||
/// Configuration file parsing error
|
||||
ConfigError(String),
|
||||
}
|
||||
|
||||
impl From<redis::RedisError> for SupervisorError {
|
||||
@@ -95,6 +97,9 @@ impl std::fmt::Display for SupervisorError {
|
||||
SupervisorError::SupervisorNotConfigured => {
|
||||
write!(f, "Supervisor not configured for health monitoring")
|
||||
}
|
||||
SupervisorError::ConfigError(msg) => {
|
||||
write!(f, "Configuration error: {}", msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user