diff --git a/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs b/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs index cd1a18098d2..9fe6fb49651 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs +++ b/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs @@ -215,11 +215,11 @@ private async Tasks.Task DownloadWithRetriesAsync(HttpClient httpClient, s if (attempt > Retries) { Log.LogMessage($"Failed to download '{uri}' to '{DestinationPath}': {e.Message}"); + Log.LogErrorFromException(e, true, true, null); return false; } Log.LogMessage($"Retrying download of '{uri}' to '{DestinationPath}' due to failure: '{e.Message}' ({attempt}/{Retries})"); - Log.LogErrorFromException(e, true, true, null); await Tasks.Task.Delay(RetryDelayMilliseconds).ConfigureAwait(false); continue;