You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to load .env file which is completely empty, the load function ends with EmptyEnvFileError exception, even if I pass isOptional argument.
At the same time, when I load .env file with no variables at all:
# This file doesn't contain any variables, just a comments and empty lines
# No variables
, the "EmptyEnvFileError" isn't fired.
I believe that "no file at all", "completely empty file" and "file which doesn't contain variables" are equal cases, so all of them should work in same way with isOptional argument.
Moreover, when I'm getting error, I can't even understand what error it is exactly, because library doesn't export any error classes.
I can provide a pull request with fix for this problems, if no there is no objections
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
When I try to load
.env
file which is completely empty, theload
function ends withEmptyEnvFileError
exception, even if I passisOptional
argument.At the same time, when I load
.env
file with no variables at all:, the "EmptyEnvFileError" isn't fired.
I believe that "no file at all", "completely empty file" and "file which doesn't contain variables" are equal cases, so all of them should work in same way with
isOptional
argument.Moreover, when I'm getting error, I can't even understand what error it is exactly, because library doesn't export any error classes.
I can provide a pull request with fix for this problems, if no there is no objections
The text was updated successfully, but these errors were encountered: