Skip to content

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

Merged
jfairbairn merged 2 commits intojfairbairn:masterfrom
paulRbr:pass-http-exception
Oct 13, 2016
Merged

Don't hide errors from EM::HttpRequest#9
jfairbairn merged 2 commits intojfairbairn:masterfrom
paulRbr:pass-http-exception

Conversation

@paulRbr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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