Skip to main content

croc_sidecar/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("Tried to take stderr but it was not available")]
6    NoStderr,
7    #[error("IO error: {0}")]
8    IoError(#[from] tokio::io::Error),
9}
10
11pub type Result<T = ()> = std::result::Result<T, Error>;