Skip to content

Commit 59190fe

Browse files
authored
Add PSNativeCommandUseErrorActionPreference preference variable (#1954)
1 parent e22c65f commit 59190fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Engine/SpecialVars.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ static SpecialVars()
9292
internal const string ProgressPreference = "ProgressPreference";
9393
internal const string InformationPreference = "InformationPreference";
9494
internal const string ErrorView = "ErrorView";
95+
internal const string PSNativeCommandUseErrorActionPreference = "PSNativeCommandUseErrorActionPreference";
9596

9697
internal static readonly string[] PreferenceVariables = new string[]
9798
{
@@ -103,7 +104,8 @@ static SpecialVars()
103104
ConfirmPreference,
104105
ProgressPreference,
105106
InformationPreference,
106-
ErrorView
107+
ErrorView,
108+
PSNativeCommandUseErrorActionPreference,
107109
};
108110

109111
internal static readonly Type[] PreferenceVariableTypes = new Type[]
@@ -117,6 +119,7 @@ static SpecialVars()
117119
/* ProgressPreference */ typeof(Enum),
118120
/* InformationPreference */ typeof(ActionPreference),
119121
/* ErrorView */ typeof(Enum), //ErrorView type not available on PS3
122+
/* PSNativeCommandUseErrorActionPreference */ typeof(bool),
120123
};
121124

122125
internal enum AutomaticVariable

0 commit comments

Comments
 (0)