ktdreyer / errata-tool-ansible

Ansible modules to manage Red Hat Errata Tool resources
GNU General Public License v3.0
4 stars 14 forks source link

Make errors from Errata Tool API more verbose #282

Closed hluk closed 1 year ago

hluk commented 1 year ago

Includes API request details when an unexpected status code is encountered.

Makes error consistent across all API calls.

Also fixes problem when error response from the API contains "errors" field instead of "error" or does not contain any of these.

hluk commented 1 year ago

@ktdreyer Can you review please?

ktdreyer commented 1 year ago

Love it that you've brought much-needed consistency to the error handling, and this will make it much easier to debug future problems. Thank you!