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

Make errors more consistent #266

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented May 29, 2019

When the underlying child_process.spawn() throws synchronously, the promise rejected by execa() has a different shape than other errors. This fixes it.

No documentation not TypeScript types needs to be added since it merely adjust the code behavior to what's already documented.

@sindresorhus sindresorhus merged commit e5ed8de into master May 29, 2019
@sindresorhus sindresorhus deleted the feature/consistent-errors branch May 29, 2019 18:47
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.

2 participants