Skip to content

Commit e91330b

Browse files
authored
Merge pull request #10061 from poadhika/master
Added more exception handling in New-AzHealthcareApisService
2 parents f166522 + bcca720 commit e91330b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/HealthcareApis/HealthcareApis/ChangeLog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Exception Handling
2122

2223
## Version 0.1.1
2324
* Added Error Handling in all cmdlets
2425
* Fixed few typos
2526
* Enable Set-AzHealthcareApisService to allow updating tags.
26-
* Fixed bug around inaccurate kind
27+
* Fixed bug around inaccurate kind.
28+
* Added Exception Handling around KeyNotFoundException.
2729

2830
## Version 0.1.0
2931
* 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)