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

Update-List: missing error messages, e.g. when -InputObject (pipeline) input is used without -Property #20986

Open
5 tasks done
mklement0 opened this issue Jan 1, 2024 · 0 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module

Comments

@mklement0
Copy link
Contributor

mklement0 commented Jan 1, 2024

Prerequisites

Steps to reproduce

# Combine input with not also specifying -Property, which isn't supported.
'foo' | Update-List -Add 1

Note: The above is just one case in which the error message is missing.

Expected behavior

The following error should be reported (this is what you get in Windows PowerShell):

Update-List: You must specify the Property parameter when the InputObject parameter is specified.

Actual behavior

A description is missing:

Update-List:

Error details

No response

Environment data

PowerShell 7.4.0

Visuals

No response

@mklement0 mklement0 added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jan 1, 2024
@mklement0 mklement0 changed the title Update-List: missing error message when -InputObject (pipeline) input is used without -Property Update-List: missing error messages, e.g. when -InputObject (pipeline) input is used without -Property Jan 1, 2024
@iSazonov iSazonov added the WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module
Projects
None yet
Development

No branches or pull requests

2 participants