mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 21:31:51 +00:00
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:
1 parent
eacf0d6a87
commit
2c51ac1c27
1 file changed
+2
-2
+2
-2
@@ -214,11 +214,11 @@ _dynu_authentication() {
|
||||
|
||||
response="$(_get "$Dynu_EndPoint/oauth2/token")"
|
||||
if [ "$?" != "0" ]; then
|
||||
_err "Authentication failed."
|
||||
_err "Authentication failed: no response from $Dynu_EndPoint/oauth2/token"
|
||||
return 1
|
||||
fi
|
||||
if _contains "$response" "Authentication Exception"; then
|
||||
_err "Authentication failed."
|
||||
_err "Authentication failed. Server response: $response"
|
||||
return 1
|
||||
fi
|
||||
if _contains "$response" "access_token"; then
|
||||
|
||||