alert-me/app/src/error.rs

14 lines
303 B
Rust
Raw Normal View History

2024-05-11 18:37:41 +02:00
use sea_orm::DbErr;
use thiserror::Error;
#[derive(Error, Debug)]
#[error("opds error")]
pub enum Error {
/// Error rendering OPDS.
#[error("opds error")]
DbError(#[from] DbErr),
/// Error fetching data from calibre.
#[error("data error")]
FetchError(#[from] reqwest::Error),
}