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

Fix avoid swallowing error message if git command failed #569

Merged

Conversation

straight-shoota
Copy link
Member

When a git command failed and the error output did not start with "error:", the entire message would be hidden.
With this change, it's printed in full.

The other resolvers already have a similar behaviour in place. I'm also adjusting the on for hg in the second commit to follow git.

This was reported in https://forum.crystal-lang.org/t/shards-install-ends-with-faild-git-tag-list-column-never/5242

When a git command failed and the error output did not start with
"error:", the entire message would be hidden.
With this change, it's printed in full. The other resolvers already have
a similar behaviour in place.
@straight-shoota straight-shoota self-assigned this Jan 7, 2023
@beta-ziliani beta-ziliani added this to the 0.18.0 milestone Jan 9, 2023
@straight-shoota straight-shoota merged commit a99fd56 into crystal-lang:master Jan 19, 2023
@straight-shoota straight-shoota deleted the fix/command-error-handling branch January 19, 2023 20:45
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.

None yet

2 participants