Home Dashboard Directory Help
Search

Items sent to pipeline on stop errors by PetSerAl


Status: 

Active


1
3
Sign in
to vote
Type: Bug
ID: 778605
Opened: 2/5/2013 1:00:52 PM
Access Restriction: Public
1
Workaround(s)
view
1
User(s) can reproduce this bug

Description

PowerShell send items to pipeline when stop error occurs.
Details
Sign in to post a comment.
Sign in to post a workaround.
Posted by PetSerAl on 6/10/2013 at 2:13 PM
$ErrorActionPreference='Stop'
.{$a=1..100|%{$_;if($_-eq50){Write-Error Error}}}|Out-Null