-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conversation
There was a problem hiding this 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"
There was a problem hiding this 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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if ($diskInfo.Free / 1MB -le 100) { | |
if ($diskInfo.Free -le 100MB) { |
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.