Skip to content
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

The 3.4.0 release of PSBlitz fails on Windows PowerShell due to Get-Error #122

Closed
VladDBA opened this issue Oct 30, 2023 · 0 comments · Fixed by #123
Closed

The 3.4.0 release of PSBlitz fails on Windows PowerShell due to Get-Error #122

VladDBA opened this issue Oct 30, 2023 · 0 comments · Fixed by #123
Assignees
Labels
bug Something isn't working

Comments

@VladDBA
Copy link
Owner

VladDBA commented Oct 30, 2023

Error message:

Get-Error : The term 'Get-Error' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Fix
Replace all occurrences of Get-Error -Newest 1 with $error[0]

@VladDBA VladDBA added the bug Something isn't working label Oct 30, 2023
@VladDBA VladDBA self-assigned this Oct 30, 2023
@VladDBA VladDBA changed the title PSBlitz fails on Windows PowerShell due to Get-Error The latest release of PSBlitz fails on Windows PowerShell due to Get-Error Oct 30, 2023
@VladDBA VladDBA mentioned this issue Oct 31, 2023
Merged
@VladDBA VladDBA changed the title The latest release of PSBlitz fails on Windows PowerShell due to Get-Error The 3.4.0 release of PSBlitz fails on Windows PowerShell due to Get-Error Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant