Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update exception handling for downloads #408

Merged
merged 1 commit into from Feb 16, 2020
Merged

Update exception handling for downloads #408

merged 1 commit into from Feb 16, 2020

Conversation

nxtn
Copy link
Contributor

@nxtn nxtn commented Feb 12, 2020

No description provided.

Task.WaitAll(tasks);
}
catch
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some logging here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception caught here is an aggregate of all failed tasks' exceptions. By handling them in another loop, we can link the exceptions with their corresponding downloads. Alternatively we could move the EH logic to the Download class as said in the comment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version works well for me, thanks!

@nxtn nxtn changed the title Update downloading Update exception handling for downloads Feb 13, 2020
@oleg-nenashev oleg-nenashev added the internal Internal changes and maintenance label Feb 16, 2020
@oleg-nenashev oleg-nenashev merged commit 0f0ed5f into winsw:master Feb 16, 2020
@nxtn nxtn deleted the download branch February 16, 2020 06:38
@nxtn nxtn modified the milestone: 2.6.0 Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal changes and maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants