-
Notifications
You must be signed in to change notification settings - Fork 8.4k
-Verbose Changes (downgrades) the Error Behaviour #2247
Copy link
Copy link
Closed
Labels
Breaking-Changebreaking change that may affect usersbreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Milestone
Metadata
Metadata
Assignees
Labels
Breaking-Changebreaking change that may affect usersbreaking change that may affect usersCommittee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Type
Fields
Give feedbackNo fields configured for issues without a type.
-Verbose changes (downgrades) the Error Action from a Stop to Continue. This is undocumented and confusing.
Steps to reproduce
Run this script
Expected behavior
'This should not output because ErrorActionPreference is set to STOP', should not output
Actual behavior
'This should not output because ErrorActionPreference is set to STOP' is output
Bug Location
MshCommandRuntime.cs
internal ActionPreference ErrorAction
if (Verbose)
return ActionPreference.Continue;
doesn't will downgrade a Stop
Proposed Solution
Environment data