From d14cd1ad56eeb901de785d653adfb7eb721eb45e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 25 Mar 2025 19:49:12 +0000 Subject: [PATCH] Show a meaningful error message in handleOauthTokenError. Fixes #1766 --- src/gam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 5a7e7b1e..0af5442f 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -4446,7 +4446,7 @@ def handleOAuthTokenError(e, softErrors, displayError=False, i=0, count=0): if not GM.Globals[GM.CURRENT_SVCACCT_USER]: ClientAPIAccessDeniedExit() if softErrors: - entityDoesNotExistWarning(Ent.USER, GM.Globals[GM.CURRENT_SVCACCT_USER], i, count) + entityActionFailedWarning([Ent.USER, GM.Globals[GM.CURRENT_SVCACCT_USER], Ent.USER, None], errMsg, i, count) return None systemErrorExit(SERVICE_NOT_APPLICABLE_RC, Msg.SERVICE_NOT_APPLICABLE_THIS_ADDRESS.format(GM.Globals[GM.CURRENT_SVCACCT_USER])) if errMsg in API.OAUTH2_UNAUTHORIZED_ERRORS: