File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
ResourceManager/Implementation/CmdletBase Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ private void HandleException(ExceptionDispatchInfo capturedException)
423
423
var errorResponseException = capturedException . SourceException as ErrorResponseMessageException ;
424
424
if ( errorResponseException != null )
425
425
{
426
- this . ThrowTerminatingError ( errorResponseException . ToErrorRecord ( ) ) ;
426
+ throw errorResponseException ;
427
427
}
428
428
429
429
var aggregateException = capturedException . SourceException as AggregateException ;
@@ -435,18 +435,18 @@ private void HandleException(ExceptionDispatchInfo capturedException)
435
435
errorResponseException = aggregateException . InnerExceptions . Single ( ) as ErrorResponseMessageException ;
436
436
if ( errorResponseException != null )
437
437
{
438
- this . ThrowTerminatingError ( errorResponseException . ToErrorRecord ( ) ) ;
438
+ throw errorResponseException ;
439
439
}
440
440
441
- this . ThrowTerminatingError ( aggregateException . InnerExceptions . Single ( ) . ToErrorRecord ( ) ) ;
441
+ throw aggregateException . InnerExceptions . Single ( ) ;
442
442
}
443
443
else
444
444
{
445
- this . ThrowTerminatingError ( aggregateException . ToErrorRecord ( ) ) ;
445
+ throw aggregateException ;
446
446
}
447
447
}
448
448
449
- capturedException . Throw ( ) ;
449
+ throw capturedException . SourceException ;
450
450
}
451
451
finally
452
452
{
Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * Fix for issue https://github.com/Azure/azure-powershell/issues/8235
21
22
22
23
## Version 1.1.1
23
24
* Fix incorrect examples in ` New-AzADAppCredential ` and ` New-AzADSpCredential ` reference documentation
You can’t perform that action at this time.
0 commit comments