From 35e4b9011def97eb6bb9df0118fb62184792b13e Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Mon, 11 Aug 2025 08:26:49 -0700 Subject: [PATCH] Added support for scanning Confluence pages --- src/confluence.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/confluence.rs b/src/confluence.rs index 7150e90..aecf637 100644 --- a/src/confluence.rs +++ b/src/confluence.rs @@ -94,7 +94,8 @@ pub async fn search_pages( .get(header::LOCATION) .and_then(|v| v.to_str().ok()) .map(|s| s.to_string()); - let body = resp.text().await.unwrap_or_default(); + let body = resp.text().await.unwrap_or_else(|e| format!("Failed to read response: {}", e)); + if let Some(loc) = location { bail!( "Confluence API request returned {} redirect to {}. Check KF_CONFLUENCE_TOKEN and KF_CONFLUENCE_USER",