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

show more verbose errors #95

Closed
benben opened this issue Apr 7, 2016 · 0 comments
Closed

show more verbose errors #95

benben opened this issue Apr 7, 2016 · 0 comments

Comments

@benben
Copy link

benben commented Apr 7, 2016

Right now, it is really hard to find out, why an api call is failing. For example when I try to create an entry with

content_type.entries.create(title: 'Test Title')
=> #<Contentful::Management::UnprocessableEntity: Validation error>

to really see what is actually not validating I just found this way:

e = content_type.entries.create(title: 'Test Title')
=> #<Contentful::Management::UnprocessableEntity: Validation error>
puts e.response.raw.body.to_s
=> <showing the full response body with the error>

Would be nice to have the error message(s) in an instance var or something like that in the exception.

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

No branches or pull requests

1 participant