Skip to content

Commit d19fb89

Browse files
committed
try adding erroractionpreference = stop
1 parent b1b98b7 commit d19fb89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Support.Autorest/custom/New-AzSupportFileAndUpload.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ param(
127127
${ProxyUseDefaultCredentials}
128128
)
129129

130-
131130
process {
131+
$ErrorActionPreference = 'Stop'
132132
Write-Output "file path: " $FilePath
133133
$MaxChunkSize = 2.5 * 1024 * 1024 #2.5 MB
134134
$MaxFileSize = 5 * 1024 * 1024 #5 MB

0 commit comments

Comments
 (0)