add mysql support

This commit is contained in:
Sebastian Hugentobler 2024-05-11 18:51:55 +02:00
parent ac0ac8a10d
commit 966373b8fa
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
3 changed files with 4 additions and 4 deletions

View file

@ -4,10 +4,10 @@ use thiserror::Error;
#[derive(Error, Debug)]
#[error("opds error")]
pub enum Error {
/// Error rendering OPDS.
/// Database Error
#[error("opds error")]
DbError(#[from] DbErr),
/// Error fetching data from calibre.
/// Error fetching data from alertswiss
#[error("data error")]
FetchError(#[from] reqwest::Error),
}

View file

@ -12,7 +12,7 @@ async fn main() {
let config = args.into();
if let Err(e) = alert_me::run(config).await {
error!("Application error: {e}");
error!("Application error: {e:?}");
process::exit(1);
}
}