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

Don't swallow logical.Unwrap error #4258

Merged
merged 1 commit into from
Apr 3, 2018
Merged

Don't swallow logical.Unwrap error #4258

merged 1 commit into from
Apr 3, 2018

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Apr 3, 2018

This PR fixes the error handling in the api packages logical.Unwrap
method. Previously if there was an error making the request to Vault,
the error was only returned if there was an HTTP response and the status
code was not a 404.

The new code returns all errors but does special case handling if the
response code is a 404.

This PR fixes the error handling in the api packages logical.Unwrap
method. Previously if there was an error making the request to Vault,
the error was only returned if there was an HTTP response and the status
code was not a 404.

The new code returns all errors but does special case handling if the
response code is a 404.
@dadgar dadgar requested a review from jefferai April 3, 2018 21:06
Copy link
Member

@jefferai jefferai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jefferai jefferai merged commit 154072e into master Apr 3, 2018
@jefferai jefferai deleted the b-renew-err branch April 3, 2018 21:11
dadgar added a commit to hashicorp/nomad that referenced this pull request Apr 3, 2018
dadgar added a commit to hashicorp/nomad that referenced this pull request Apr 3, 2018
dadgar added a commit to hashicorp/nomad that referenced this pull request Apr 3, 2018
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

2 participants