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

improve error propagation #10

Merged
merged 4 commits into from
Apr 14, 2019
Merged

improve error propagation #10

merged 4 commits into from
Apr 14, 2019

Conversation

rspier
Copy link
Contributor

@rspier rspier commented Apr 14, 2019

I noticed that I could set a TTL of 4, and it was happily accepted. This made no sense, as there's only two bits to hold the ttl.

This set of changes adds error handling to ConnectionOptions, propagates errors up the stack a bit (from places where it wasn't being propagated, and most importantly actually passes the ttl options through in the default case.

@coveralls
Copy link

coveralls commented Apr 14, 2019

Coverage Status

Coverage increased (+0.8%) to 66.446% when pulling 40b93cc on rspier:ttlerror into ca539ae on abates:master.

@rspier
Copy link
Contributor Author

rspier commented Apr 14, 2019

Sorry for the coverage drop, it's mostly because of new if err == nil { } blocks. Improving coverage is a project for another night.

@abates
Copy link
Owner

abates commented Apr 14, 2019

Merged

@abates abates merged commit c2d3e42 into abates:master Apr 14, 2019
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.

3 participants