Fix handling empty error messages
This commit is contained in:
parent
c847cb8fd1
commit
169c521b89
|
@ -141,7 +141,10 @@ $null = New-Module {
|
|||
if (Test-Path $errorPath) {
|
||||
$errorMessage = Get-Content $errorPath;
|
||||
Remove-Item $errorPath;
|
||||
Write-Error $errorMessage;
|
||||
|
||||
if ($errorMessage) {
|
||||
Write-Error $errorMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue