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.
2 parents cde84a1 + 54686fa commit c7f132dCopy full SHA for c7f132d
src/Common/Commands.Common/AzurePSCmdlet.cs
@@ -671,7 +671,7 @@ protected override void ProcessRecord()
671
base.ProcessRecord();
672
ExecuteCmdlet();
673
}
674
- catch (Exception ex)
+ catch (Exception ex) when (!IsTerminatingError(ex))
675
{
676
WriteExceptionError(ex);
677
@@ -697,5 +697,16 @@ public void Dispose()
697
Dispose(true);
698
GC.SuppressFinalize(this);
699
700
+
701
+ public virtual bool IsTerminatingError(Exception ex)
702
+ {
703
+ var pipelineStoppedEx = ex as PipelineStoppedException;
704
+ if (pipelineStoppedEx != null && pipelineStoppedEx.InnerException == null)
705
706
+ return true;
707
+ }
708
709
+ return false;
710
711
712
0 commit comments