Skip to content

Commit 8f9273a

Browse files
committed
chore(devforum-rank-verification): Avoid using cookie on failed request, the user is not a member if the initial request is unsuccessful
1 parent 314e026 commit 8f9273a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

bot/src/components/verify_devforum_rank.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ async fn fetch_devforum_data(
238238
if let Ok(data) = res.json::<DevForumAPIResponse>().await {
239239
return Ok(data);
240240
}
241+
} else {
242+
anyhow::bail!(
243+
"Failed to fetch DevForum data for roblox_username={roblox_username} without cookie, received status: {}",
244+
res.status()
245+
)
241246
}
242247

243248
// Return early if the cookie is not set

0 commit comments

Comments
 (0)