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

Ethon: focus on return_code for errors #2274

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Ethon: focus on return_code for errors #2274

merged 1 commit into from
Oct 19, 2023

Conversation

fallwith
Copy link
Contributor

For an instance of Ethon::Easy, consider a #return_code result not equal to :ok to be the indicator of an error instead of the #response_code being equal to 0. With direct Ethon usage, these equality checks seem interchangeable but with Typhoeus the underyling easy object is left with a 0 for its response code on success.

For an instance of `Ethon::Easy`, consider a `#return_code` result not
equal to `:ok` to be the indicator of an error instead of the
`#response_code` being equal to `0`. With direct Ethon usage, these
equality checks seem interchangeable but with Typhoeus the underyling
easy object is left with a 0 for its response code on success.
@github-actions
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 94.13% 94%
Branch 85.72% 85%

@fallwith fallwith merged commit b2481d0 into ethon Oct 19, 2023
@fallwith fallwith deleted the ethon_with_typhoeus branch October 19, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants