mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-06 20:05:50 +08:00
GANDI_V5: Increase error verbosity (#3267)
This commit is contained in:
parent
876451b346
commit
76bbdc191a
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ func (client *gandiv5Provider) GetZoneRecordsCorrections(dc *models.DomainConfig
|
||||||
F: func() error {
|
F: func() error {
|
||||||
res, err := g.CreateDomainRecord(domain, shortname, rtype, ttl, values)
|
res, err := g.CreateDomainRecord(domain, shortname, rtype, ttl, values)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%+v: %w", res, err)
|
return fmt.Errorf("%+v ret=%03d: %w", res, res.Code, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
@ -263,7 +263,7 @@ func (client *gandiv5Provider) GetZoneRecordsCorrections(dc *models.DomainConfig
|
||||||
F: func() error {
|
F: func() error {
|
||||||
res, err := g.UpdateDomainRecordsByName(domain, shortname, ns)
|
res, err := g.UpdateDomainRecordsByName(domain, shortname, ns)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%+v: %w", res, err)
|
return fmt.Errorf("%+v ret=%03d: %w", res, res.Code, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue