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

Re-raise the original error if error parsing fails #35

Merged
merged 1 commit into from
Jul 24, 2014
Merged

Re-raise the original error if error parsing fails #35

merged 1 commit into from
Jul 24, 2014

Conversation

greysteil
Copy link
Contributor

  • re-raise the original error if error parsing fails
  • DRY up error handling code

- re-raise the original error if error parsing fails
- DRY up error handling code
@greysteil
Copy link
Contributor Author

Got a JSON::GeneratorError from the Lob gem today because parsing a failed submission (500 on your side? Went through fine on a second attempt).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.37%) when pulling 4be1531 on greysteil:better-error-handling into 2f7dbe8 on lob:master.

@bsiddiqui
Copy link
Contributor

nice work

bsiddiqui added a commit that referenced this pull request Jul 24, 2014
Re-raise the original error if error parsing fails
@bsiddiqui bsiddiqui merged commit 38780d6 into lob:master Jul 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants