Document the error cases for std::process::Command #65125
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-process
Area: `std::process` and `std::env`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
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.
The text was updated successfully, but these errors were encountered: