We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5712b2 commit 8d28ca6Copy full SHA for 8d28ca6
tests/Validate-Settings.ps1
@@ -93,8 +93,10 @@ function Test-ObjectStructure {
93
$structureErrors = Test-ObjectStructure -Actual $settings -Expected $expectedSettings
94
95
if ($structureErrors.Count -gt 0) {
96
- Write-Error "Structure validation failed with $($structureErrors.Count) error(s):"
97
- $structureErrors | ForEach-Object { Write-Error " - $_" }
+ Write-Host ''
+ Write-Host "Structure validation failed with $($structureErrors.Count) error(s):" -ForegroundColor Red
98
+ $structureErrors | ForEach-Object { Write-Host " - $_" -ForegroundColor Red }
99
+ Write-Error 'Settings structure does not match expected layout. See errors above.'
100
exit 1
101
}
102
0 commit comments