fix: Test-Error verbose call and Get-CISMgOutput Parameter

This commit is contained in:
DrIOS
2024-06-23 17:58:27 -05:00
parent ca1734381f
commit 4e0b20fc14
3 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ function Get-TestError {
$script:FailedTests.Add([PSCustomObject]@{ Rec = $recnum; Description = $description; Error = $LastError })
# Call Initialize-CISAuditResult with error parameters
$auditResult = Initialize-CISAuditResult -Rec $recnum -Failure
Write-Verbose "An error occurred during the test: `n$LastError" -VerboseAction Continue
Write-Verbose "An error occurred during the test: `n$LastError" -Verbose
return $auditResult
}