Skip to content

Fix exceptions' handling - #110

Merged
AR-May merged 6 commits into
dotnet:masterfrom
AR-May:fix-exception-handling-3
Dec 3, 2020
Merged

AR-May merged 6 commits into
dotnet:masterfrom
AR-May:fix-exception-handling-3

Conversation

@AR-May

@AR-May AR-May commented Nov 24, 2020

Copy link
Copy Markdown
Member

Second PR concerning exceptions' handling. Addresses issues #27, #11, #9, #8.

Changes:

  • Add functions for getting HTTP headers.
  • Make download errors visible (including the TLS issue).
  • Error 404 is now processed separately: for some of the cases, getting error 404 is a normal flow of script execution.
  • Fix extraction failure processing.

Comment thread src/dotnet-install.sh Resolved
@AR-May
AR-May requested a review from nohwnd November 24, 2020 14:21

@vlada-shubina vlada-shubina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor comments.
Duplicated logic should be avoided if possible
PS script: I would prefer to handle status code by reading the exception status code, and relying on message if possible (open for discussion here)

Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.ps1 Resolved

@vlada-shubina vlada-shubina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Like the exception approach 👍

@AR-May
AR-May requested a review from nohwnd November 30, 2020 14:48
Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.ps1 Resolved
@AR-May
AR-May merged commit c115c0d into dotnet:master Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants