Skip to content

Commit

Permalink
ignore download errors from chromium repo
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Oct 23, 2022
1 parent 0f639a5 commit 74378f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SuperPatch.Core/FileContentBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ public class FileContentBuilder
internal static async Task<FileContents> LoadAsync(Workspace wrk, FileDiff file, Status.StatusDelegate status)
{
status?.InvokeAsync($"Loading {file.From}");
var fileContent = await wrk.Storage.GetFileAsync(file);
byte[] fileContent = null;
try
{
fileContent = await wrk.Storage.GetFileAsync(file);
}
catch(System.Exception ex)
{
status?.InvokeAsync($"Error {ex.Message}");
}
status?.InvokeAsync($"Loaded {file.From}");

var contents = new FileContents()
Expand Down

0 comments on commit 74378f4

Please sign in to comment.