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

add descriptive errors for var(..) #15

Closed
wants to merge 1 commit into from

Conversation

clifton
Copy link

@clifton clifton commented Aug 26, 2022

adds context to error generated by dotenv::var("MISSING_VAR")

before

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: EnvVar(NotPresent)'

to

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: EnvVar(NotPresent): MISSING_VAR'

@sonro
Copy link
Collaborator

sonro commented Dec 6, 2022

@clifton if you still consider this change necessary, please contribute to the discussion #25.

@allan2
Copy link
Owner

allan2 commented Mar 17, 2023

Closing because I don't see this as the final format of the error API.

Feel free to contribute in the discussions.

@allan2 allan2 closed this Mar 17, 2023
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.

None yet

3 participants