Skip to content

Commit

Permalink
RecommendedAction: Explicitly start and stop ANSI Error Color (PowerS…
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote authored and chrisdent-de committed Sep 12, 2024
1 parent 1cbc7fd commit f0bae0e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0bae0e

Please sign in to comment.