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

Improve error.message and add result.command #31

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Aug 23, 2024

Fixes #17.

This PR adds:

  • result.command/error.command.
  • A better error.message, which mentions the command that failed.
  • The original error instance is now passed as error.cause, instead of being directly modified. This prevents problems when two subprocesses throw the same underlying error instance.

@ehmicky ehmicky mentioned this pull request Aug 23, 2024
@sindresorhus sindresorhus merged commit 8bdc484 into main Aug 23, 2024
12 checks passed
@sindresorhus sindresorhus deleted the error-message branch August 23, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

result.command
2 participants