Skip to content

Commit

Permalink
Cleanup error msgs
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
  • Loading branch information
gregsidelinger committed Jan 2, 2024
1 parent 2b4aa56 commit 8e9a416
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions provider/rfc2136/rfc2136.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
// only send if there are records available
for _, z := range m {
if len(z.Ns) > 0 {
err := r.actions.SendMessage(z)
if err != nil {
log.Errorf("RFC2136 update failed: %v", err)
if err := r.actions.SendMessage(z); err != nil {
log.Errorf("RFC2136 create record failed: %v", err)
errors = append(errors, err)
continue
}
Expand Down Expand Up @@ -314,9 +313,8 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
// only send if there are records available
for _, z := range m {
if len(z.Ns) > 0 {
err := r.actions.SendMessage(z)
if err != nil {
log.Errorf("RFC2136 update failed: %v", err)
if err := r.actions.SendMessage(z); err != nil {
log.Errorf("RFC2136 update record failed: %v", err)
errors = append(errors, err)
continue
}
Expand Down Expand Up @@ -349,9 +347,8 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
// only send if there are records available
for _, z := range m {
if len(z.Ns) > 0 {
err := r.actions.SendMessage(z)
if err != nil {
log.Errorf("RFC2136 update failed: %v", err)
if err := r.actions.SendMessage(z); err != nil {
log.Errorf("RFC2136 delete record failed: %v", err)
errors = append(errors, err)
continue
}
Expand Down

0 comments on commit 8e9a416

Please sign in to comment.