Skip to content

Should native command errors have the executable path or invocation as the TargetObject instead of the name? #15992

@rjmholt

Description

@rjmholt

Summary of the new feature / enhancement

In #15897 we added in the executable name as the ErrorRecord TargetObject at the last minute.

But when we write the error, we also have:

  • The whole process object of the executable
  • The start info object
  • And on that, the executable path and arguments

Would it be better/more helpful to make any of those the TargetObject?

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions