fix(pwsh): fix error log display on older versions of pwsh (#4650)

This commit is contained in:
David Knaack 2022-12-02 21:17:57 +01:00 committed by GitHub
parent 9d4870775a
commit ef83e7a092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;