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

Covalence: print out more meaningful error message on "The specified key does not exist." #75

Open
disaac opened this issue Sep 27, 2018 · 0 comments
Assignees

Comments

@disaac
Copy link
Member

disaac commented Sep 27, 2018

When covalence is doing a lookup on the a variable, if the key does not exist, it does not print out which key it is complaining about. This makes it hard to figure out what is missing.

example:

rake aborted!
Unable to retrieve document 'terraform-state/terraform.tfstate' from bucket 'example-terraform-state-us-west-2': The specified key does not exist.
/usr/local/bundle/gems/covalence-0.8.1/lib/covalence/core/state_stores/s3.rb:37:in `rescue in get_doc'
/usr/local/bundle/gems/covalence-0.8.1/lib/covalence/core/state_stores/s3.rb:34:in `get_doc'

Desired behavior is to have the error message message print out the missing key.

@disaac disaac self-assigned this Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant