From ef83e7a0928231b02650b3554ccd5bf21164aaff Mon Sep 17 00:00:00 2001 From: David Knaack Date: Fri, 2 Dec 2022 21:17:57 +0100 Subject: [PATCH] fix(pwsh): fix error log display on older versions of pwsh (#4650) --- src/init/starship.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/starship.ps1 b/src/init/starship.ps1 index e97da7d1..4422a1ed 100755 --- a/src/init/starship.ps1 +++ b/src/init/starship.ps1 @@ -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;