diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs index 7a32f4f5b79..6ee2dc4fbfa 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs @@ -1351,7 +1351,11 @@ function Get-ConciseViewPositionMessage { if ($ErrorView -eq 'ConciseView') { $recommendedAction = $_.ErrorDetails.RecommendedAction if (-not [String]::IsNullOrWhiteSpace($recommendedAction)) { - $recommendedAction = $newline + ' Recommendation: ' + $recommendedAction + $recommendedAction = $newline + + ${errorColor} + + ' Recommendation: ' + + $recommendedAction + + ${resetcolor} } if ($err.PSMessageDetails) {