Small fixes to logging

This commit is contained in:
Neshura 2024-05-06 22:54:01 +02:00
parent 3928367692
commit 17e161bc27
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 3 additions and 3 deletions
src/fetchers

View file

@ -284,7 +284,7 @@ impl Fetcher for JFetcherOptions {
Ok(data) => match data.text().await {
Ok(data) => data,
Err(e) => {
let err_msg = format!("{e}");
let err_msg = format!("While checking feed: {e}");
error!(err_msg);
return Err(());
}
@ -410,7 +410,7 @@ async fn get_latest_prepub(volume_slug: &str) -> Result<Option<lemmy::PostInfoIn
Ok(data) => match data.text().await {
Ok(data) => data,
Err(e) => {
let err_msg = format!("{e}");
let err_msg = format!("While getting latest PrePub: {e}");
error!(err_msg);
return Err(());
}