add: test number to error

This commit is contained in:
DrIOS
2024-08-04 13:49:58 -05:00
parent 9e3058add4
commit 357f284d08
7 changed files with 7 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ function Test-SpamPolicyAdminNotify {
$auditResult = Initialize-CISAuditResult @params
}
catch {
Write-Error "An error occurred during the test: $_"
Write-Error "An error occurred during the test $recnum`:: $_"
$auditResult = Get-TestError -LastError $_ -recnum $recnum
}
}