From 3ee7655fe4a938754ec29f91b3f5eea5ec39ca81 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 22 Oct 2024 22:18:36 +0200 Subject: [PATCH] UI: Log Twitch 403 error bodies --- UI/auth-twitch.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/auth-twitch.cpp b/UI/auth-twitch.cpp index 6ab5cce7b..40f70b567 100644 --- a/UI/auth-twitch.cpp +++ b/UI/auth-twitch.cpp @@ -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() ? "" : output.c_str()); return false; }