Skip to content

Commit

Permalink
fix: json marshal failure should be a real error
Browse files Browse the repository at this point in the history
  • Loading branch information
julillae committed Jul 4, 2024
1 parent 82b0fab commit ee22193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/pdns/pdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func (p *PDNSProvider) mutateRecords(endpoints []*endpoint.Endpoint, changetype
for _, zone := range zonelist {
jso, err := json.Marshal(zone)
if err != nil {
return provider.NewSoftError(fmt.Errorf("JSON Marshal for zone struct failed: %v", err))
log.Errorf("JSON Marshal for zone struct failed!")
} else {
log.Debugf("Struct for PatchZone:\n%s", string(jso))
}
Expand Down

0 comments on commit ee22193

Please sign in to comment.