dns_dynu: include the server response in the authentication error

Same as the dns_cloudns change: a bare "Authentication failed" hides
the actual API error and makes reports undiagnosable.
This commit is contained in:
neil committed 2026-07-12 12:45:10 +08:00
1 parent eacf0d6a87
commit 2c51ac1c27
1 file changed
+2 -2
+2 -2
View File
@@ -214,11 +214,11 @@ _dynu_authentication() {
response="$(_get "$Dynu_EndPoint/oauth2/token")" response="$(_get "$Dynu_EndPoint/oauth2/token")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "Authentication failed." _err "Authentication failed: no response from $Dynu_EndPoint/oauth2/token"
return 1 return 1
fi fi
if _contains "$response" "Authentication Exception"; then if _contains "$response" "Authentication Exception"; then
_err "Authentication failed." _err "Authentication failed. Server response: $response"
return 1 return 1
fi fi
if _contains "$response" "access_token"; then if _contains "$response" "access_token"; then
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.