From 9e3058add4fc47c390cfc5562ad8b6c2cde8adc1 Mon Sep 17 00:00:00 2001 From: DrIOS <58635327+DrIOSX@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:49:13 -0500 Subject: [PATCH] add: test number to Get-TestError output --- .gitignore | 3 ++- source/Private/Get-TestError.ps1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dfd31be..31d1dba 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ markdownissues.txt node_modules package-lock.json Aligned.xlsx -test-gh1.ps1 \ No newline at end of file +test-gh1.ps1 +ModdedModules/* \ No newline at end of file diff --git a/source/Private/Get-TestError.ps1 b/source/Private/Get-TestError.ps1 index 83bb5f4..8147137 100644 --- a/source/Private/Get-TestError.ps1 +++ b/source/Private/Get-TestError.ps1 @@ -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" -Verbose + Write-Verbose "An error occurred during the test $recnum`: `n$LastError" -Verbose return $auditResult }