git_next_core/git/
fetch.rs1pub type Result<T> = core::result::Result<T, Error>;
3
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[error("io")]
7 Io(#[from] std::io::Error),
8
9 #[error("unable to open repo: {0}")]
10 UnableToOpenRepo(String),
11
12 #[error("no remote found")]
13 NoFetchRemoteFound,
14
15 #[error("remote connect: {0}")]
16 Connect(String),
17
18 #[error("prepare: {0}")]
19 Prepare(String),
20
21 #[error("receive: {0}")]
22 Receive(String),
23
24 #[error("lock")]
25 Lock,
26
27 #[cfg(test)]
28 #[error("expected failure in test")]
29 TestFailureExpected,
30
31 #[cfg(test)]
32 #[error("test")]
33 TestResult(#[from] Box<dyn std::error::Error>),
34}