Commit fd243dec3c6c

Vincent Demeester <vincent@sbr.pm>
2026-02-12 10:47:21
fix: truncated HTML body from GitHub API error messages
Only show the HTTP status code, not the full response body which is often a large HTML error page.
1 parent 0da3c80
Changed files (1)
tools
github-notif-manager
tools/github-notif-manager/src/github.rs
@@ -104,9 +104,8 @@ impl GitHubClient {
 
             if !response.status().is_success() {
                 anyhow::bail!(
-                    "GitHub API returned error: {} - {}",
+                    "GitHub API returned error: {}",
                     response.status(),
-                    response.text().unwrap_or_default()
                 );
             }