aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: b414cf9103b92287ef65b2774c6a51c2d9033ebc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("error creating pty")]
    CreatePty(#[source] nix::Error),

    #[error("error opening pts at {0}")]
    OpenPts(std::path::PathBuf, #[source] std::io::Error),

    #[error("error spawning subprocess")]
    Spawn(#[source] std::io::Error),
}

pub type Result<T> = std::result::Result<T, Error>;