aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/azure-pipelines/windows/Check-ManifestFormatting.ps16
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1 b/scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1
index e6e29068f..f4385c2b4 100644
--- a/scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1
+++ b/scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1
@@ -32,6 +32,12 @@ if (-not (Test-Path "$Root/vcpkg.exe"))
}
& "$Root/vcpkg.exe" 'x-format-manifest' '--all'
+if (-not $?)
+{
+ Write-Error "Failed formatting manifests; are they well-formed?"
+ throw
+}
+
$changedFiles = & "$PSScriptRoot/Get-ChangedFiles.ps1" -Directory $portsTree
if (-not $IgnoreErrors -and $null -ne $changedFiles)
{