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

print the name of the env var when a required var is missing #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lhopcroft123
Copy link

Previously, when a required variable is not set, the error message only contained the struct field name but not the name of the associated environment variable. This PR changes the error message to include the env var names as required so it is easier to see what needs to be set from the user perspective.

@zbindenren
Copy link

That would solve my issue. Currently a user has to inspect the source code to find out what environment variable is missing.

@MashinaMashina
Copy link

Instead of inserting data into a message, you need to use a structure with the necessary fields

#141

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.

3 participants