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

Improving error handling #39

Merged
merged 3 commits into from Jan 17, 2013
Merged

Improving error handling #39

merged 3 commits into from Jan 17, 2013

Conversation

benilovj
Copy link
Contributor

Since Zendesk's API validations and error cases are not documented,
it is possible that the support app's validations let invalid requests
slip through. This means that it's not possible to raise a ticket
from the user's request.

Prior to this change, such cases would generate a standard Rails 500 error.
After this change, the user sees a much clearer error message and
receives a text representation of the ticket that was going to be
raised, in case they would like to review it or not have to type it out again.

Since Zendesk's API validations and error cases are no documented,
it is possible that the support app's validations let invalid requests
slip through. This means that it's not possible to raise a ticket
from the user's request.

Prior to this change, such cases would generate a standard Rails 500 error.
After this change, the user sees a much clearer error message and
receives a text representation of the ticket that was going to be
raised, in case they would like to review it or forward it on via email.
@ghost ghost assigned heathd Jan 17, 2013
heathd added a commit that referenced this pull request Jan 17, 2013
@heathd heathd merged commit b033efb into master Jan 17, 2013
@benilovj benilovj deleted the improving_error_handling branch January 17, 2013 15:16
neilvanbeinum pushed a commit that referenced this pull request Aug 22, 2016
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.

None yet

2 participants