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

Return original error on reading parameter. #124

Merged
merged 1 commit into from Sep 4, 2018

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Sep 4, 2018

If there's no matching parameter, the api returns an empty list, in which case we return ErrSecretNotFound. Otherwise we should return the original error.

[Fixes #104]

@nickatsegment
Copy link
Contributor

@jmcarp Seems sensible to me. Were you hoping to get a specific error from AWS?

@jmcarp
Copy link
Contributor Author

jmcarp commented Sep 4, 2018

@nickatsegment: yep, I ran into the same issue as #104: when I can't read a secret due to permissions, I want to see an AccessDeniedException instead of "secret not found".

@nickatsegment nickatsegment merged commit d76fdd1 into segmentio:master Sep 4, 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