aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: 560f5cbe6f5c7137fc269aae26e698885b590cca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("error reading from stdin")]
    ReadStdin(#[source] std::io::Error),

    #[error("error writing to stdout")]
    WriteStdout(#[source] std::io::Error),
}

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