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

ErrorAction Parameter for Get-7Zip and Get-7ZipInformation #20

Open
JasonFossen opened this issue Jun 22, 2016 · 1 comment
Open

ErrorAction Parameter for Get-7Zip and Get-7ZipInformation #20

JasonFossen opened this issue Jun 22, 2016 · 1 comment

Comments

@JasonFossen
Copy link

Hello:

When attempting to open an encrypted archive with the wrong password, an exception is correctly thrown, but the -ErrorAction parameter appears to not be respected. For example:

Get-7Zip -ArchiveFileName .\Encrypted.7z -Password "WrongPassword" -ErrorAction SilentlyContinue

Is not silent. And "-ErrorAction Stop" does not stop.

Both Get-7Zip and Get-7ZipInformation appear to not respect -ErrorAction, but Expand-7Zip does (haven't tried the other cmdlets).

Thanks for the module!
Cheers,
J.

@thoemmi
Copy link
Owner

thoemmi commented Jun 23, 2016

Up to now I didn't implement any error handling at all. I'll have a closer look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants