Unverified Commit 580a96f9 authored by Niklas Schulze's avatar Niklas Schulze Committed by GitHub

update_dart_sdk.ps1: Ensure Start-BitsTransfer always throws an exception in...

update_dart_sdk.ps1: Ensure Start-BitsTransfer always throws an exception in case of errors (#65929)
parent e0ac5da1
...@@ -57,7 +57,7 @@ $dartSdkZip = "$cachePath\$dartZipName" ...@@ -57,7 +57,7 @@ $dartSdkZip = "$cachePath\$dartZipName"
Try { Try {
Import-Module BitsTransfer Import-Module BitsTransfer
Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip -ErrorAction Stop
} }
Catch { Catch {
Write-Host "Downloading the Dart SDK using the BITS service failed, retrying with WebRequest..." Write-Host "Downloading the Dart SDK using the BITS service failed, retrying with WebRequest..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment