Steps to reproduce
git can be replaced to any native executable with non-empty standart output.
Expected behavior
Error with FullyQualifiedErrorId : 1, just like in throw 1 case.
Actual behavior
Error with FullyQualifiedErrorId : NativeCommandFailed
PS /> git | % {throw 1}
Program 'git' failed to run: 1At line:1 char:1
+ git | % {throw 1}
+ ~~~.
At line:1 char:1
+ git | % {throw 1}
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.13
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.11
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Note: it repros on both alpha.11 and alpha.13 so it's not a regression introduced in #2450
Steps to reproduce
gitcan be replaced to any native executable with non-empty standart output.Expected behavior
Error with
FullyQualifiedErrorId : 1, just like inthrow 1case.Actual behavior
Error with
FullyQualifiedErrorId : NativeCommandFailedEnvironment data
Note: it repros on both alpha.11 and alpha.13 so it's not a regression introduced in #2450