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

Show innermost download exceptions #2528

Merged
merged 1 commit into from
Oct 7, 2018

Conversation

HebaruSan
Copy link
Member

Problem

#2527 shows a bunch of errors along these lines:

Error downloading KerbalEngineerRedux 1.1.5.3: An exception occurred during a WebClient request.

This says "An exception" instead of specifying what the problem is because it's one of .NET's annoying wrapper exceptions. The useful info is hidden in exception.InnerException, or exception.InnerException.InnerException, or even exception.InnerException.InnerException.InnerException.

Changes

Now we use GetBaseException as we did #2480 to strip off all the wrapper exceptions and display the actual problem. This is not a fix for #2527, but it makes such problems more debuggable. We can share a test build with that issue's author if the issue happens consistently for them.

@HebaruSan HebaruSan added Easy This is easy to fix Pull request Network Issues affecting internet connections of CKAN labels Sep 30, 2018
@politas politas merged commit 93ebb53 into KSP-CKAN:master Oct 7, 2018
politas added a commit that referenced this pull request Oct 7, 2018
@HebaruSan HebaruSan deleted the fix/download-error-details branch October 7, 2018 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy This is easy to fix Network Issues affecting internet connections of CKAN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants