Skip to content

Commit

Permalink
Update eng/common/scripts/Update-DocsMsMetadata.ps1
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
  • Loading branch information
2 people authored and azure-sdk committed Dec 6, 2021
1 parent cf2ffea commit ab8e99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/common/scripts/Update-DocsMsMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ foreach ($packageInfoLocation in $PackageInfoJsonLocations) {
# Add validation step for daily update and release
if ($ValidateDocsMsPackagesFn -and (Test-Path "Function:$ValidateDocsMsPackagesFn")) {
&$ValidateDocsMsPackagesFn -PackageInfo $packageInfo -PackageSourceOverride $PackageSourceOverride -DocValidationImageId $DocValidationImageId
if ($LASTEXITCODE -ne 0) {
if ($LASTEXITCODE) {
LogError "The package failed Doc.Ms validation. Check https://aka.ms/azsdk/docs/docker for more details on how to diagnose this issue."
exit 1
exit $LASTEXITCODE
}
}
UpdateDocsMsMetadataForPackage $packageInfoLocation $packageInfo
Expand Down

0 comments on commit ab8e99d

Please sign in to comment.