summaryrefslogtreecommitdiffstats
path: root/src/recite/erro.rs
blob: 00f57b3812b4a39db11200d8b25bb6297f696599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Mishap {
    #[error("broken pipe: {0}")]
    BrokenPipe(String),
    // #[error("exec format error: {0}")]
    // ExecFormat(String),
    #[error("permission denied: {0}")]
    PermissionDenied(String),
    #[error("terminated: {0}")]
    Terminated(String),
    #[error("exec error: {0}")]
    Else(String),
}