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 Process::Status#description #15468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

straight-shoota
Copy link
Member

In the compiler we have a neat feature that shows a human readable description when a process process exited with an abnormal status.
This patch moves this as a gernal tool into stdlib as Process::Status#description.

The implementation is split into two parts:

  • Process::ExitReason#description provides the static description for most exit reasons
  • Process::Status#description enhances that description with details about the termination signal when it's a signal exit without further specification.

@straight-shoota straight-shoota force-pushed the feat/process-exit_reason-message branch from fe444fa to ee86ce6 Compare February 13, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant