From da799163968d66ea84a14945e919c9d2c74d0782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:55:48 +0200 Subject: [PATCH] Add more info when send fail (not just status) --- src/modules/cli/sender.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/cli/sender.rs b/src/modules/cli/sender.rs index c398570..4294bda 100644 --- a/src/modules/cli/sender.rs +++ b/src/modules/cli/sender.rs @@ -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) => {