Skip to content

Fix exceptions' swallowing #106

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

Merged
merged 3 commits into from
Nov 20, 2020
Merged

Conversation

AR-May
Copy link
Member

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

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
Copy link
Contributor

@donJoseLuis donJoseLuis left a comment

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"

@AR-May AR-May requested a review from nohwnd November 13, 2020 07:43
@AR-May AR-May self-assigned this Nov 16, 2020
Copy link
Member

@nohwnd nohwnd left a comment

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.

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