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: handle the error during gzip compression instead of panic #137

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

pyrooka
Copy link
Member

@pyrooka pyrooka commented Aug 31, 2021

This PR fixes/improves the error handling in the Gzip compression. Before this commit if an error occurred during the compression it caused a panic. With this change, in case of errors, the pipe will be closed and the error will be passed.

@pyrooka pyrooka requested a review from padamstx August 31, 2021 18:13
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pyrooka pyrooka merged commit 15bc45b into main Aug 31, 2021
@pyrooka pyrooka deleted the fix-gzip-io-panic branch August 31, 2021 18:35
ibm-devx-sdk pushed a commit that referenced this pull request Aug 31, 2021
## [5.6.4](v5.6.3...v5.6.4) (2021-08-31)

### Bug Fixes

* handle the error during gzip compression instead of panic ([#137](#137)) ([15bc45b](15bc45b))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 5.6.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants