Skip to content

Commit b55d83c

Browse files
tjprescottazure-sdk
authored andcommitted
Make failures report errors.
1 parent ec61826 commit b55d83c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

eng/common/scripts/Create-APIReview.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ function ProcessPackage($packageInfo)
337337
{
338338
if (!$apiStatus.IsApproved)
339339
{
340-
Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageInfo.ArtifactName)."
341-
Write-Host "Build and release is not allowed for GA package without API review approval."
342-
Write-Host "You will need to queue another build to proceed further after API review is approved"
343-
Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
340+
Write-Error "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageInfo.ArtifactName)."
341+
Write-Error "Build and release is not allowed for GA package without API review approval."
342+
Write-Error "You will need to queue another build to proceed further after API review is approved"
343+
Write-Error "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
344344
}
345345
return 1
346346
}
@@ -437,7 +437,7 @@ foreach($pkg in $responses.keys)
437437
{
438438
if ($responses[$pkg] -eq 1)
439439
{
440-
Write-Host "API changes are not approved for $($pkg)"
440+
Write-Error "API changes are not approved for $($pkg)"
441441
$exitCode = 1
442442
}
443443
}

0 commit comments

Comments
 (0)