Skip to content

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

@disaac

Description

@disaac

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions