Skip to content

Commit 6dca997

Browse files
authored
Merge pull request #118361 from duffney/patch-2
Mod: Handles err from azkeys.NewClient
2 parents c521231 + 8eae93a commit 6dca997

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/key-vault/keys/quick-create-go.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Quickstart - Azure Key Vault Go client library - manage keys
33
description: Learn how to create, retrieve, and delete keys from an Azure key vault using the Go client library
44
author: Duffney
55
ms.author: jduffney
6-
ms.date: 02/28/2022
6+
ms.date: 12/27/2023
77
ms.service: key-vault
88
ms.subservice: keys
99
ms.topic: quickstart
@@ -86,7 +86,10 @@ func main() {
8686
}
8787
8888
// create azkeys client
89-
client := azkeys.NewClient(keyVaultUrl, cred, nil)
89+
client, err := azkeys.NewClient(keyVaultUrl, cred, nil)
90+
if err != nil {
91+
log.Fatal(err)
92+
}
9093
9194
// create RSA Key
9295
rsaKeyParams := azkeys.CreateKeyParameters{

0 commit comments

Comments
 (0)