Merge pull request #198 from defrance/main

Add more info when send fail (not just status)
This commit is contained in:
rustmailer
2026-04-21 20:18:59 +08:00
committed by GitHub

View File

@@ -54,11 +54,14 @@ pub async fn send_batch_request(
);
}
Ok(res) => {
let status = res.status();
let error_body = res.text().await.unwrap_or_default();
eprintln!(
" {} Failed to send to [{}]. Status: {}",
" {} Failed to send to [{}]. Status: {}\n Server error: {}",
style("").red(),
folder,
res.status()
status,
error_body
);
}
Err(e) => {