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

Don't hide errors from EM::HttpRequest #9

Merged
merged 2 commits into from
Oct 13, 2016

Conversation

paulRbr
Copy link
Contributor

@paulRbr paulRbr commented Oct 12, 2016

I found it strange to hide all the details of the http errors into a generic exception raising an "EM - unknown error".

This PR raises the error from the EM::HttpRequest object instead

@jfairbairn jfairbairn merged commit 5ad830c into jfairbairn:master Oct 13, 2016
@jfairbairn
Copy link
Owner

jfairbairn commented Oct 13, 2016

Thanks so much Paul! (And thanks for fixing the specs - not sure when they got broken)

Would you have time to write a couple of test cases covering exception raising? Would really appreciate it if you could.

@jfairbairn
Copy link
Owner

Actually I added a test case. Thanks again for your contribution!

@paulRbr paulRbr deleted the pass-http-exception branch October 14, 2016 06:31
@paulRbr
Copy link
Contributor Author

paulRbr commented Oct 14, 2016

Thanks for the review James :)! And thanks for the time taken to add tests and the Travis build

I'm glad you also released and bump a new version with the patch. Cheers!

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