summaryrefslogtreecommitdiffstats
path: root/src/project/error.rs
blob: 2e9f4a351553268eccec6217d46f74b77ee4b31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    IO(#[from] std::io::Error),

    #[cfg(feature = "git")]
    #[error(transparent)]
    Git(#[from] git2::Error),

    #[error(transparent)]
    SystemTime(#[from] std::time::SystemTimeError),

    #[error(transparent)]
    Other(#[from] anyhow::Error),
}