Skip to content

Commit b417d2d

Browse files
committed
fix(auth): add GitHub response body to log if auth fails
1 parent e6f6a7e commit b417d2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/auth/github.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ impl GithubClient {
8181

8282
if !res.status().is_success() {
8383
log::error!(
84-
"GitHub OAuth device flow start request failed with code {}",
85-
res.status()
84+
"GitHub OAuth device flow failed to start. Error code: {}. Body: {}",
85+
res.status(),
86+
res.text().await.unwrap_or("No body received".into())
8687
);
8788
return Err(ApiError::InternalError);
8889
}

0 commit comments

Comments
 (0)