You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging an issue with locales, I found that the error message from Contentful::Management::UnprocessableEntity was giving me no information beyond a ValidationError and that there was no name, path or value associated with the issue.
I've monkeypatched the `handle_error function like this and it gives much better details: this might be of interest more widely and might be worth using in the library itself.
Let me know if you'd like a pull request.
(todo: work out whether name/path/value ever have values, if message and details can be absent, customise error appropriately)
The text was updated successfully, but these errors were encountered:
Debugging an issue with locales, I found that the error message from
Contentful::Management::UnprocessableEntity
was giving me no information beyond aValidationError
and that there was no name, path or value associated with the issue.I've monkeypatched the `handle_error function like this and it gives much better details: this might be of interest more widely and might be worth using in the library itself.
(original:
contentful-management.rb/lib/contentful/management/error.rb
Line 152 in 3310792
Let me know if you'd like a pull request.
(todo: work out whether name/path/value ever have values, if message and details can be absent, customise error appropriately)
The text was updated successfully, but these errors were encountered: