You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$ErrorView = 'NormalView' is not colorizing errors #16665
When $ErrorView is set to NormalView (or CategoryView), error text color changes from red to white. When checking the current value of $Host.PrivateData.ErrorForegroundColor it reports Red. It is possible to change the variable value but it has no effect in NormalView and CategoryView.
In ConciseView everything works as expected.
Expected behavior
Error text color should be the same as the $Host.PrivateData.ErrorForegroundColor value.
Actual behavior
Error text color is white whatever color you set to $Host.PrivateData.ErrorForegroundColor.
Error details
No response
Environment data
Name Value
---------
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
changed the title [-]Error text color in $ErrorView = NormalView is not possible to change.[/-][+]$ErrorView = 'NormalView' is not colorizing errors[/+]on Jul 9, 2022
Activity
daxian-dbw commentedon Jan 4, 2022
Steve Lee (@SteveL-MSFT) can you please take a look?
KevinMarquette commentedon Jul 8, 2022
The title of this issue should be updated to: "
$ErrorView = 'NormalView'is not colorizing errors."I just ran into this one myself. Errors are not even colored red when using this view, it's just plain text. It almost doesn't say the word error.
[-]Error text color in $ErrorView = NormalView is not possible to change.[/-][+]$ErrorView = 'NormalView' is not colorizing errors[/+]SteveL-MSFT commentedon Jul 18, 2022
Taking a look