cgroschupp / go-client-confluent-cloud

MIT License
13 stars 19 forks source link

Better error message handling for Connector creation #19

Closed albrechtflo-hg closed 3 years ago

albrechtflo-hg commented 3 years ago

Interestingly, Confluent API does not return a JSON object with an "error" field containing the error message when e.g. a validation error occurs during creating connectors. Instead, only the fields "message" and "code" are present in the returned body.

To better examine the cause of an error, this change reflects this and extracts the error message from the "message" field instead.