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

Improve error handling #250

Open
wants to merge 1 commit into
base: feature/structured-errors
Choose a base branch
from

Conversation

inteon
Copy link
Contributor

@inteon inteon commented Aug 11, 2022

Currently, some of the errors returned from VaaS are ignored by the vcert client.
This PR tries to unify the code style for all error handling and improves error handling such that the error body is always prioritised over http error codes.

@wallrj
Copy link
Contributor

wallrj commented Aug 11, 2022

xref #231

@EduardoVV
Copy link
Contributor

Hi @inteon, thanks for your PR

We are currently working on an enhancement adressing this issue (https://github.com/Venafi/vcert/tree/feature/structured-errors), we will see how/if we can combine both

Signed-off-by: Tim Ramlot <[email protected]>
@inteon inteon changed the base branch from master to feature/structured-errors August 20, 2022 21:23
@inteon
Copy link
Contributor Author

inteon commented Aug 20, 2022

@EduardoVV
Thank you for the information.
I updated the PR to target the structured-errors branch.
This PR now also includes some other possible improvements for that branch.
Due to this branch not being go fmt'ed, the PR also includes some formatting changes (autoformat in my IDE).

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

Successfully merging this pull request may close these issues.

None yet

3 participants