1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use miette::Diagnostic;
use thiserror::Error;

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

#[derive(Debug, Diagnostic, Error)]
pub enum GenerateCssError {
    #[error(transparent)]
    Io(#[from] std::io::Error),

    #[error(transparent)]
    Reqwest(#[from] reqwest::Error),

    #[error(transparent)]
    AxoAsset(#[from] axoasset::AxoassetError),

    #[error(transparent)]
    NonUtf8Path(#[from] std::str::Utf8Error),
}