use thiserror::Error; /// #[derive(Error, Debug)] pub enum HooksError { /// #[error("git error:{0}")] Git(#[from] git2::Error), /// #[error("io error:{0}")] Io(#[from] std::io::Error), /// #[error("path string conversion error")] PathToString, /// #[error("shellexpand error:{0}")] ShellExpand(#[from] shellexpand::LookupError), } /// pub type Result = std::result::Result;