1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-07 02:50:47 +00:00

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

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;