aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: efd7193ad8577fab471ffe3c4996b0d8f6f44506 (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("IO error: {0:?}")]
    IO(#[from] std::io::Error),

    #[error("Config error: {0:?}")]
    Config(#[from] figment::error::Error),

    #[error("Directories error: {0:?}")]
    Directories(#[from] crate::paths::Error),

    #[error("Finder error: {0:?}")]
    Finder(#[from] crate::finder::Error),
}