summaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: f22cff2f8d9662ff16eedb80b8677d007d732850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub type Result<T> = std::result::Result<T, Error>;

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    Config(#[from] figment::error::Error),

    #[error(transparent)]
    Ignore(#[from] ignore::Error),

    #[error(transparent)]
    Project(#[from] crate::project::Error),

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