Skip to content

$ErrorView = 'NormalView' is not colorizing errors #16665

@loxia01

Description

@loxia01

Prerequisites

Steps to reproduce

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

Visuals

2021-12-22 092221
2021-12-22 092831

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions