We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code uses an unknown variable:
rke2/install.ps1
Line 583 in b25c1f4
I was able to catch this because my powershell is in strict-mode.
To catch these kind of problems, I would modify this script to have something alike:
Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' trap { Write-Host "ERROR: $_" Write-Host (($_.ScriptStackTrace -split '\r?\n') -replace '^(.*)$','ERROR: $1') Write-Host (($_.Exception.ToString() -split '\r?\n') -replace '^(.*)$','ERROR EXCEPTION: $1') Exit 1 }
The text was updated successfully, but these errors were encountered:
cc @phillipsj @rosskirkpat
Sorry, something went wrong.
configure powershell to be strict
00bba05
this allows for better error handling/reporting like mentioned in rancher#1804
remove unused/unneeded argument
3437cef
this closes rancher#1804
13791db
No branches or pull requests
The following code uses an unknown variable:
rke2/install.ps1
Line 583 in b25c1f4
I was able to catch this because my powershell is in strict-mode.
To catch these kind of problems, I would modify this script to have something alike:
The text was updated successfully, but these errors were encountered: