Skip to content

Commit

Permalink
add soft error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfrancoislelezec authored and Jean-François LELEZEC committed Jan 22, 2024
1 parent 4db7b22 commit 1b79fca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provider/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (p *AzureProvider) Records(ctx context.Context) (endpoints []*endpoint.Endp
for pager.More() {
nextResult, err := pager.NextPage(ctx)
if err != nil {
return nil, err
return nil, provider.NewSoftError(fmt.Errorf("failed to fetch dns records: %w", err))
}
for _, recordSet := range nextResult.Value {
if recordSet.Name == nil || recordSet.Type == nil {
Expand Down
2 changes: 1 addition & 1 deletion provider/azure/azure_private_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (p *AzurePrivateDNSProvider) Records(ctx context.Context) (endpoints []*end
for pager.More() {
nextResult, err := pager.NextPage(ctx)
if err != nil {
return nil, err
return nil, provider.NewSoftError(fmt.Errorf("failed to fetch dns records: %w", err))
}

for _, recordSet := range nextResult.Value {
Expand Down

0 comments on commit 1b79fca

Please sign in to comment.