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

Specify name of environment variable in env function error message #49

Open
bengesoff opened this issue Sep 8, 2021 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bengesoff
Copy link
Contributor

Currently if the environment variable is not found in the config env function, the error message is as shown:

Error: vaas-vvw.hcl:3,11-15: Error in function call; Call to function "env" failed: environment variable not set., and 1 other diagnostic(s)

But it would be more helpful if it specified which environment variable was causing the error. This should be easy to implement as the information is already present in the function scope when generating this error.

@bengesoff bengesoff added enhancement New feature or request good first issue Good for newcomers labels Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant