forked from mockturtl/dotenv
-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels