Skip to content

Commit

Permalink
Merge pull request Squirrel#249 from willdean/patch-1
Browse files Browse the repository at this point in the history
Log URLs correctly in FileDownloader
  • Loading branch information
anaisbetts committed Feb 28, 2015
2 parents 5b0f9fd + c944f9f commit 0e1487e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Squirrel/FileDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public async Task DownloadFile(string url, string targetFile, Action<int> progre

retry:
try {
this.Log().Info("Downloading file: " + failedUrl ?? url);
this.Log().Info("Downloading file: " + (failedUrl ?? url));

await this.WarnIfThrows(() => wc.DownloadFileTaskAsync(failedUrl ?? url, targetFile),
"Failed downloading URL: " + failedUrl ?? url);
"Failed downloading URL: " + (failedUrl ?? url));
} catch (Exception) {
// NB: Some super brain-dead services are case-sensitive yet
// corrupt case on upload. I can't even.
Expand All @@ -45,10 +45,10 @@ public async Task<byte[]> DownloadUrl(string url)

retry:
try {
this.Log().Info("Downloading url: " + failedUrl ?? url);
this.Log().Info("Downloading url: " + (failedUrl ?? url));

return await this.WarnIfThrows(() => wc.DownloadDataTaskAsync(failedUrl ?? url),
"Failed to download url: " + failedUrl ?? url);
"Failed to download url: " + (failedUrl ?? url));
} catch (Exception) {
// NB: Some super brain-dead services are case-sensitive yet
// corrupt case on upload. I can't even.
Expand Down

0 comments on commit 0e1487e

Please sign in to comment.