diff --git a/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 b/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 index 95d7d5ad70..c765f7c675 100644 --- a/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 +++ b/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 @@ -133,7 +133,7 @@ function Set-PesterGitHubOutput { Write-Verbose "$intermediateNameElements" Write-Verbose "failedTest $failedTest" Write-Verbose "failedTestErrorRecord $($failedTest.ErrorRecord)" - Write-Verbose "failedTestErrorRecordTargetObject $($failedTest.ErrorRecord.TargetObject)" + Write-Verbose "failedTestErrorRecordTargetObject $($($failedTest.ErrorRecord).TargetObject)" $errorTestFile = (Split-Path $failedTest.ErrorRecord.TargetObject.File -Leaf).Trim()