Skip to content

Commit

Permalink
fix handle is invalid error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Jan 12, 2024
1 parent 09b071a commit 6a79883
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pester/winutil.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ Describe "Syntax" {
. ./pester.ps1
}
catch {
Write-Host "Error: $_"
if ([System.Console]::IsOutputRedirected -eq $false) {
Write-Host "Error: $_"
}
throw $_
}
}
Expand Down

0 comments on commit 6a79883

Please sign in to comment.