GANDI_V5: Increase error verbosity (#3267)

This commit is contained in:
Tom Limoncelli 2024-12-19 11:37:09 -05:00 committed by GitHub
parent 876451b346
commit 76bbdc191a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,7 +244,7 @@ func (client *gandiv5Provider) GetZoneRecordsCorrections(dc *models.DomainConfig
F: func() error {
res, err := g.CreateDomainRecord(domain, shortname, rtype, ttl, values)
if err != nil {
return fmt.Errorf("%+v: %w", res, err)
return fmt.Errorf("%+v ret=%03d: %w", res, res.Code, err)
}
return nil
},
@ -263,7 +263,7 @@ func (client *gandiv5Provider) GetZoneRecordsCorrections(dc *models.DomainConfig
F: func() error {
res, err := g.UpdateDomainRecordsByName(domain, shortname, ns)
if err != nil {
return fmt.Errorf("%+v: %w", res, err)
return fmt.Errorf("%+v ret=%03d: %w", res, res.Code, err)
}
return nil
},