Skip to content

Commit 78afc1a

Browse files
committed
Add check in ProcessRecord to handle PipelineStoppedException
1 parent 677fd4a commit 78afc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Commands.Common/AzurePSCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ protected override void ProcessRecord()
671671
base.ProcessRecord();
672672
ExecuteCmdlet();
673673
}
674-
catch (Exception ex)
674+
catch (Exception ex) when (!(ex is PipelineStoppedException) && ex.InnerException != null)
675675
{
676676
WriteExceptionError(ex);
677677
}

0 commit comments

Comments
 (0)