Skip to content

Commit 77dc9cc

Browse files
author
Pooja Adhikari
committed
Added more exception handling around CheckNameAvailability
1 parent 17bb388 commit 77dc9cc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/HealthcareApis/HealthcareApis/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
* Added Error Handling in all cmdlets
2424
* Fixed few typos
2525
* Enable Set-AzHealthcareApisService to allow updating tags.
26-
* Fixed bug around inaccurate kind
26+
* Fixed bug around inaccurate kind.
27+
* Added Exception Handling around KeyNotFoundException.
2728

2829
## Version 0.1.0
2930
* Added following CRUD operation cmdlets to HealthcareApis service.

src/HealthcareApis/HealthcareApis/HealthcareApis/NewAzureRmHealthcareApisService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ public override void ExecuteCmdlet()
172172

173173
if (ShouldProcess(this.Name, Resources.createService))
174174
{
175-
176-
this.EnsureNameAvailabilityOrThrow();
177-
178175
try
179176
{
177+
178+
this.EnsureNameAvailabilityOrThrow();
179+
180180
var createAccountResponse = this.HealthcareApisClient.Services.CreateOrUpdate(
181181
this.ResourceGroupName,
182182
this.Name,

0 commit comments

Comments
 (0)