1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CLOUDFLAREAPI: Clarify source of error in message (#1700)

This commit is contained in:
Tom Limoncelli
2022-08-14 07:33:05 -04:00
committed by GitHub
parent b4ebe5b54b
commit 09a53b4d68

View File

@@ -32,7 +32,7 @@ func (c *cloudflareProvider) getRecordsForDomain(id string, domain string) ([]*m
records := []*models.RecordConfig{}
rrs, err := c.cfClient.DNSRecords(context.Background(), id, cloudflare.DNSRecord{})
if err != nil {
return nil, fmt.Errorf("failed fetching record list from cloudflare: %s", err)
return nil, fmt.Errorf("failed fetching record list from cloudflare(%q): %w", c.cfClient.APIEmail, err)
}
for _, rec := range rrs {
rt, err := c.nativeToRecord(domain, rec)
@@ -354,9 +354,10 @@ func (c *cloudflareProvider) createTestWorker(workerName string) error {
return err
}
//lint:ignore U1000 false positive due to
// https://github.com/dominikh/go-tools/issues/1137 which is a dup of
// https://github.com/dominikh/go-tools/issues/810
//
//lint:ignore U1000 false positive due to
type pageRuleConstraint struct {
Operator string `json:"operator"`
Value string `json:"value"`