1 2 3 4 5 6 7 8 9
#[derive(Debug, thiserror::Error)] pub enum SessionError { #[error("io error: {0}")] Io(#[from] std::io::Error), #[error("json error: {0}")] Json(#[from] serde_json::Error), #[error("home directory not available")] NoHomeDir, }