aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: 83a2ef7462be70157e1d2d75c5549be0032fb237 (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)]
    Logging(#[from] crate::logging::Error),

    #[error(transparent)]
    Paths(#[from] crate::paths::Error),

    #[error(transparent)]
    Finder(#[from] crate::finder::Error),

    #[error(transparent)]
    Config(#[from] figment::error::Error),
}