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

Improve error for required env vars with alt name #200

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

Commits on Nov 23, 2021

  1. Improve error for required env vars with alt name

    If we have a prefix called "env_config" and the following struct tags
    for property "Foo", we should expect to see an error message stating
    that the required env var "ENV_CONFIG_BAR" is missing and not just
    "BAR" since that is the env var being looked up.
    
    ```
    type Spec struct {
      Foo string `envconfig:"bar" required:"true"`
    }
    ```
    wfernandes committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    f327b4f View commit details
    Browse the repository at this point in the history