mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CLOUDFLARE: Error messages should indicate which cred entry (#1690)
This commit is contained in:
@ -16,7 +16,7 @@ func (c *cloudflareProvider) fetchDomainList() error {
|
|||||||
c.nameservers = map[string][]string{}
|
c.nameservers = map[string][]string{}
|
||||||
zones, err := c.cfClient.ListZones(context.Background())
|
zones, err := c.cfClient.ListZones(context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed fetching domain list from cloudflare: %s", err)
|
return fmt.Errorf("failed fetching domain list from cloudflare(%q): %s", c.cfClient.APIEmail, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, zone := range zones {
|
for _, zone := range zones {
|
||||||
|
Reference in New Issue
Block a user