fix(pwsh): fix error log display on older versions of pwsh (#4650)
This commit is contained in:
parent
9d4870775a
commit
ef83e7a092
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue