summaryrefslogtreecommitdiffstats
path: root/src/finder/error.rs
blob: a8009a8b656196002530885629197d713dd7a0e6 (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("Child process has not been spawned")]
    NoChild,

    #[error("Failed to get Child's stdin")]
    Stdin,

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

    #[error("IO error: {0}")]
    IO(#[from] std::io::Error),
}