Skip to content

Commit

Permalink
UI: Log Twitch 403 error bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod authored and RytoEX committed Oct 23, 2024
1 parent 9908c79 commit 3ee7655
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UI/auth-twitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ bool TwitchAuth::MakeApiRequest(const char *path, Json &json_out)
if (error_code == 403) {
OBSMessageBox::warning(OBSBasic::Get(), Str("TwitchAuth.TwoFactorFail.Title"),
Str("TwitchAuth.TwoFactorFail.Text"), true);
blog(LOG_WARNING, "%s: %s", __FUNCTION__,
blog(LOG_WARNING, "%s: %s. API response: %s", __FUNCTION__,
"Got 403 from Twitch, user probably does not "
"have two-factor authentication enabled on "
"their account");
"their account",
output.empty() ? "<none>" : output.c_str());
return false;
}

Expand Down

0 comments on commit 3ee7655

Please sign in to comment.