Skip to content

Document the error cases for std::process::Command #65125

Open
@jfrimmel

Description

@jfrimmel

The current documentation of the std::process::Command-struct lacks the description of possible error cases. All examples assume the working case, too.
There is currently no easy was to see, why a e.g. a call to spawn() could fail (before running).

I would recommend to add either a list of possible error cases (if this is similar on every platform) or add links to external documentation, if the different platforms have their own possible error codes.

Unfortunately I cannot help here very much, as I'm not aware of the Process implementations on different platforms, e.g. Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-processArea: `std::process` and `std::env`C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions