Skip to content

Commit

Permalink
GANDI_V5: Increase error verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Dec 19, 2024
1 parent c0fada2 commit b69f68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/gandiv5/gandi_v5Provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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
},
Expand Down

0 comments on commit b69f68c

Please sign in to comment.