Skip to content

Commit

Permalink
fix(pwsh): fix error log display on older versions of pwsh (#4650)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkna committed Dec 2, 2022
1 parent 9d48707 commit ef83e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/starship.ps1
Expand Up @@ -64,7 +64,7 @@ $null = New-Module starship {
# Manually write it to console
if ($stderr.Result.Trim() -ne '') {
# Write-Error doesn't work here
$host.ui.WriteErrorLine($stderr)
$host.ui.WriteErrorLine($stderr.Result)
}

$stdout.Result;
Expand Down

0 comments on commit ef83e7a

Please sign in to comment.