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), }