Replies: 2 comments
-
|
I suggest that the error be kept as is. ReasonThe only place where the error can occur is the The forum post's conclusion about the underlying
SolutionImproving the documentation around this topic might be the best course of action. For example showing how to wrap the error using
AlternativeAlternatively, or perhaps additionally, a more detailed error could be put behind a Cargo feature. That way users could opt in to using an error similar to PR #15. SidenoteInterestingly the The |
Beta Was this translation helpful? Give feedback.
-
|
v0.16 now includes the path to the env file in the error message. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One of the most common errors is when an env var could not be found.
Currently, the name of the missing env var is not included in the error because
std::env::VarErroris like this:This means users who want context on the name need to handle the name themselves.
Should
dotenvy::Errorcontain the name of the env var somewhere?Relevant
#14
https://users.rust-lang.org/t/is-std-varerror-designed-like-this-on-purpose-and-if-so-why/53679
Beta Was this translation helpful? Give feedback.
All reactions