Skip to content

Fix exceptions' swallowing - #106

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

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

Conversation

@AR-May

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

Copy link
Copy Markdown
Member

Partially delivers issue #27 and issue #9.

This is the first part of planned fixes of error diagnosis in the scripts. The changes partially fix exceptions' swallowing.
Also, this closes the debts from PR #96 and PR #97.

@AR-May
AR-May requested a review from nohwnd November 12, 2020 09:29

@donJoseLuis donJoseLuis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not familiar enough with some of the techniques used in this PR to be a definitive reviewer. For example, & $ScriptBlock ...I had to look that up. Also the pattern in to log in the error & warning methods feel "not right"

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
Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.ps1 Resolved
@AR-May
AR-May requested a review from nohwnd November 13, 2020 07:43
@AR-May AR-May self-assigned this Nov 16, 2020

@nohwnd nohwnd 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.

LGTM, added a nit to commit that into team conscience, no need to merge it.

Comment thread src/dotnet-install.ps1
@@ -721,8 +743,7 @@ New-Item -ItemType Directory -Force -Path $InstallRoot | Out-Null
$installDrive = $((Get-Item $InstallRoot).PSDrive.Name);
$diskInfo = Get-PSDrive -Name $installDrive
if ($diskInfo.Free / 1MB -le 100) {

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.

nit:

Suggested change
if ($diskInfo.Free / 1MB -le 100) {
if ($diskInfo.Free -le 100MB) {

@AR-May
AR-May merged commit f82bb9c into dotnet:master Nov 20, 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