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

User-friendly messages for EOFError network errors #859

Merged
merged 2 commits into from
Oct 3, 2019

Conversation

elfassy
Copy link
Contributor

@elfassy elfassy commented Oct 3, 2019

Provide nice errors for more types of network exceptions
EOFError
Errno::ECONNRESET
Errno::ETIMEDOUT
Errno::EHOSTUNREACH

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

Thanks @elfassy! Looks quite reasonable to me. Left a couple comments.

lib/stripe/stripe_client.rb Show resolved Hide resolved
test/stripe/stripe_client_test.rb Show resolved Hide resolved
Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@brandur-stripe brandur-stripe merged commit ba7ee5c into stripe:master Oct 3, 2019
@brandur-stripe
Copy link
Contributor

Released as 5.5.0.

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.

None yet

3 participants