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

Do not hide write error #2

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Do not hide write error #2

merged 1 commit into from
Jun 11, 2015

Conversation

dtaniwaki
Copy link
Owner

write error was hidden by close error.

gz.close
rescue ::Exception => e
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?

dtaniwaki added a commit that referenced this pull request Jun 11, 2015
@dtaniwaki dtaniwaki merged commit ab973f8 into master Jun 11, 2015
@dtaniwaki dtaniwaki deleted the do-not-hide-write-error branch June 11, 2015 05: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.

2 participants