s3ec 0.1.4

File sync daemon and CLI for an S3-compatible event server
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum AppError {
    #[error("HTTP error: {0}")]
    Http(#[from] reqwest::Error),
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    #[error("Server error: {status} {body}")]
    Server { status: reqwest::StatusCode, body: String },
    #[error("{0}")]
    Other(String),
}