-
Notifications
You must be signed in to change notification settings - Fork 84
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
Error message within prefixed() context #102
Labels
Comments
Thanks for reporting. I'd certainly review/merge a PR with the fix. From the traceback, it looks lke it might be as simple as changing raise EnvError('Environment variable "{}" invalid: {}'.format(name, error.args[0])) from error to raise EnvError('Environment variable "{}" invalid: {}'.format(parsed_key, error.args[0])) from error |
I'll take a look and see about creating a PR. Just noticed the issue as were refactoring a codebase to introduce environs, so we have an interest in a fix. :) |
Thanks! |
sloria
added a commit
that referenced
this issue
Sep 22, 2019
sloria
added a commit
that referenced
this issue
Sep 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error message does not prepend the prefix to error message output, when an error occurs in an env.prefixed() context. The code below illustrates the issue. The environment variable is named TEST_VAR, but the error message is showing VAR.
The text was updated successfully, but these errors were encountered: