Skip to content

Commit

Permalink
use %w to wrap error
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Jan 13, 2023
1 parent 388ee70 commit d66726a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/azure_storageaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func (az *Cloud) EnsureStorageAccount(ctx context.Context, accountOptions *Accou
}

if _, err := az.BlobClient.SetServiceProperties(ctx, subsID, resourceGroup, accountName, property); err != nil {
return "", "", fmt.Errorf("failed to set blob service properties for storage account %s, error: %v", accountName, err)
return "", "", fmt.Errorf("failed to set blob service properties for storage account %s, error: %w", accountName, err)
}
}

Expand Down

0 comments on commit d66726a

Please sign in to comment.