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:
@@ -32,7 +32,7 @@ func (c *cloudflareProvider) getRecordsForDomain(id string, domain string) ([]*m
|
|||||||
records := []*models.RecordConfig{}
|
records := []*models.RecordConfig{}
|
||||||
rrs, err := c.cfClient.DNSRecords(context.Background(), id, cloudflare.DNSRecord{})
|
rrs, err := c.cfClient.DNSRecords(context.Background(), id, cloudflare.DNSRecord{})
|
||||||
if err != nil {
|
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 {
|
for _, rec := range rrs {
|
||||||
rt, err := c.nativeToRecord(domain, rec)
|
rt, err := c.nativeToRecord(domain, rec)
|
||||||
@@ -354,9 +354,10 @@ func (c *cloudflareProvider) createTestWorker(workerName string) error {
|
|||||||
return err
|
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/1137 which is a dup of
|
||||||
// https://github.com/dominikh/go-tools/issues/810
|
// https://github.com/dominikh/go-tools/issues/810
|
||||||
|
//
|
||||||
|
//lint:ignore U1000 false positive due to
|
||||||
type pageRuleConstraint struct {
|
type pageRuleConstraint struct {
|
||||||
Operator string `json:"operator"`
|
Operator string `json:"operator"`
|
||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
|
Reference in New Issue
Block a user