mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-11 14:26:46 +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)
|
err = json.Unmarshal(bodyString, &errResp)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if errResp.Status == "Failed" {
|
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