We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78afc1a commit c6ced19Copy full SHA for c6ced19
src/Common/Commands.Common/AzurePSCmdlet.cs
@@ -671,7 +671,7 @@ protected override void ProcessRecord()
671
base.ProcessRecord();
672
ExecuteCmdlet();
673
}
674
- catch (Exception ex) when (!(ex is PipelineStoppedException) && ex.InnerException != null)
+ catch (Exception ex) when (!IsTerminatingError(ex))
675
{
676
WriteExceptionError(ex);
677
@@ -697,5 +697,15 @@ public void Dispose()
697
Dispose(true);
698
GC.SuppressFinalize(this);
699
700
+
701
+ public virtual bool IsTerminatingError(Exception ex)
702
+ {
703
+ if (ex is PipelineStoppedException && ex.InnerException == null)
704
705
+ return true;
706
+ }
707
708
+ return false;
709
710
711
0 commit comments