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

provide responseCode and response body along with error from "doAndRead" method #43

Closed
saurabhkagrawal opened this issue Oct 29, 2020 · 0 comments · Fixed by #90
Closed

Comments

@saurabhkagrawal
Copy link

saurabhkagrawal commented Oct 29, 2020

I am using go-uaa module to make uaa calls, but the calls like
GetClient, GetUser, CreateClient gives out generic error message "return errors.Errorf("An error occurred while calling %s", url)". This message is not enough to write code to react to it.
For example in my code to delete a "client" I want to inform the user that the "client" you are trying to delete does not exist, and not error out :).
But this is not possible if I do not know what is the returned response from UAA which is hidden by UAA Client in not so nice way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant