git-next/crates/git/src/fetch.rs

21 lines
492 B
Rust
Raw Normal View History

#[derive(Debug, derive_more::Display)]
pub enum Error {
UnableToOpenRepo(String),
NoFetchRemoteFound,
Connect(String),
Fetch(String),
Lock,
}
impl std::error::Error for Error {}
mod gix_error {
#![cfg(not(tarpaulin_include))] // third-party library errors
use super::Error;
impl From<gix::remote::connect::Error> for Error {
fn from(gix_error: gix::remote::connect::Error) -> Self {
Self::Connect(gix_error.to_string())
}
}
}