Skip to content

Commit

Permalink
clean up docs (Azure#17697)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT authored Apr 21, 2022
1 parent bf1e3fe commit adc4536
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/keyvault/azcertificates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func main() {
```
### List Certificates
[ListCertificates](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates#Client.ListCertificates)
[NewListCertificatesPager](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates#Client.NewListCertificatesPager)
lists the properties of all certificates in the specified Key Vault.
```go
import (
Expand Down Expand Up @@ -363,7 +363,7 @@ func main() {
panic(err)
}
pager := client.ListCertificates(nil)
pager := client.NewListCertificatesPager(nil)
for pager.More() {
page, err := pager.NextPage(context.TODO())
if err != nil {
Expand All @@ -380,13 +380,13 @@ func main() {
## Troubleshooting
### Error Handling
All I/O operations will return an `error` that can be investigated to discover more information about the error. In addition, you can investigate the raw response of any response object:
All I/O operations will return an `error` that can be investigated to discover more information about the error. In addition, you can investigate the raw response of any error object:
```golang
resp, err := client.GetSecret(context.Background(), "mySecretName", nil)
if err != nil {
var httpErr azcore.HTTPResponse
if errors.As(err, &httpErr) {
// investigate httpErr.RawResponse()
var respErr *azcore.ResponseError
if errors.As(err, &respErr) {
// investigate respErr.RawResponse
}
}
```
Expand Down

0 comments on commit adc4536

Please sign in to comment.