diff --git a/src/System.Management.Automation/engine/remoting/commands/StopJob.cs b/src/System.Management.Automation/engine/remoting/commands/StopJob.cs index 7cf6cb8c99..76219bdcbd 100644 --- a/src/System.Management.Automation/engine/remoting/commands/StopJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/StopJob.cs @@ -161,17 +161,6 @@ namespace Microsoft.PowerShell.Commands else { job.StopJob(); - var parentJob = job as ContainerParentJob; - if (parentJob != null && parentJob.ExecutionError.Count > 0) - { - foreach ( - var e in - parentJob.ExecutionError.Where( - e => e.FullyQualifiedErrorId == "ContainerParentJobStopError")) - { - WriteError(e); - } - } } } }