mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-10 05:46:17 +08:00
parent
2a424f5672
commit
c1abd5d9fa
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ func (c *cloudnsProvider) get(endpoint string, params requestParams) ([]byte, er
|
|||
err = json.Unmarshal(bodyString, &errResp)
|
||||
if err == nil {
|
||||
if errResp.Status == "Failed" {
|
||||
return bodyString, fmt.Errorf("ClouDNS API error: %s URL:%s%s ", errResp.Description, req.Host, req.URL.RequestURI())
|
||||
// For debug only - req.URL.RequestURI() contains the authentication params:
|
||||
// return bodyString, fmt.Errorf("ClouDNS API error: %s URL:%s%s ", errResp.Description, req.Host, req.URL.RequestURI())
|
||||
return bodyString, fmt.Errorf("ClouDNS API error: %s", errResp.Description)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue