use std::io;
use thiserror::Error;
pub type Result<T> = std::result::Result<T, RuntimeError>;
#[derive(Debug, Error)]
pub enum RuntimeError {
#[cfg(feature = "cli")]
#[error("daemon error: {0}")]
Daemon(String),
#[error(transparent)]
Config(#[from] bitrouter_config::ConfigError),
#[error("io error: {0}")]
Io(#[from] io::Error),
#[error("{0}")]
Other(String),
}