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

Add support for ErrorAction argument #56

Open
fiasko opened this issue Mar 21, 2022 · 1 comment
Open

Add support for ErrorAction argument #56

fiasko opened this issue Mar 21, 2022 · 1 comment

Comments

@fiasko
Copy link

fiasko commented Mar 21, 2022

When Set-AudioDevice or Get-AudioDevice is called either with invalid Index number of device ID, the fuctions return a visible error and nothing else. Not even a $null value as a return value. When valid funtcion return value cant't be given (in case of error) it would be good to have a $null value as result, so that I could use these functions in my own scripts and detect when the calls failed. Also it would be good if the function could support '-ErrorAction' parameters as well, so that visible error messages could be suppressed.

@God-damnit-all
Copy link

While I'd like this too, I'm hoping 3.1 is released beforehand.

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

3 participants