Skip to content

Commit 17746fb

Browse files
committed
set $ErrorActionPreference = 'Stop'
1 parent 07bad97 commit 17746fb

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

eng/UpdateAzureSdkCodes.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ param(
77
[switch]$ShowSummary
88
)
99

10+
$ErrorActionPreference = 'Stop'
11+
1012
Write-Host "Generating Azure SDK Codes..."
1113
foreach ($filter in $ServiceDirectoryFilters) {
1214
Write-Host 'Generating projects under service directory ' -ForegroundColor Green -NoNewline

eng/UpdateAzureSdkForNet.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ param(
1313
[switch]$ShowSummary
1414
)
1515

16+
$ErrorActionPreference = 'Stop'
17+
1618
Invoke-Expression "$PSScriptRoot\UpdateGeneratorMetadata.ps1 -AutorestCSharpVersion $AutorestCSharpVersion -CadlEmitterVersion $CadlEmitterVersion -SdkRepoRoot $SdkRepoRoot"
1719

1820
Invoke-Expression "$PSScriptRoot\UpdateAzureSdkCodes.ps1 -SdkRepoRoot $SdkRepoRoot -ServiceDirectoryFilters $($ServiceDirectoryFilters -Join ',') $(if ($ShowSummary) {'-ShowSummary'})"

eng/UpdateAzureSdkForNetSamples.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ param(
1313
[switch]$ShowSummary
1414
)
1515

16+
$ErrorActionPreference = 'Stop'
17+
1618
Invoke-Expression "$PSScriptRoot\UpdateGeneratorMetadata.ps1 -AutorestCSharpVersion $AutorestCSharpVersion -CadlEmitterVersion $CadlEmitterVersion -SdkRepoRoot $SdkRepoRoot"
1719

1820
Invoke-Expression "$PSScriptRoot\UpdateAzureSdkSamples.ps1 -SdkRepoRoot $SdkRepoRoot -ServiceDirectoryFilters $($ServiceDirectoryFilters -Join ',') $(if ($ShowSummary) {'-ShowSummary'})"

eng/UpdateAzureSdkSamples.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ param(
77
[switch]$ShowSummary
88
)
99

10+
$ErrorActionPreference = 'Stop'
11+
1012
Write-Host "Generating Azure SDK Samples..."
1113
foreach ($filter in $ServiceDirectoryFilters) {
1214
Write-Host 'Generating projects under service directory ' -ForegroundColor Green -NoNewline

eng/UpdateGeneratorMetadata.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ param(
99
[string]$SdkRepoRoot)
1010

1111

12+
$ErrorActionPreference = 'Stop'
13+
1214
$SdkRepoRoot = Resolve-Path $SdkRepoRoot
1315

1416
Write-Host "Updating Autorest.CSharp($AutorestCSharpVersion) and Cadl Emitter($CadlEmitterVersion) under $SdkRepoRoot"

0 commit comments

Comments
 (0)