mirror of
https://github.com/joho/godotenv.git
synced 2025-09-29 06:34:02 +00:00
Propagate errors encountered when reading file
This commit is contained in:
@ -269,3 +269,12 @@ func TestLinesToIgnore(t *testing.T) {
|
||||
t.Error("ignoring a perfectly valid line to parse")
|
||||
}
|
||||
}
|
||||
|
||||
func TestErrorReadDirectory(t *testing.T) {
|
||||
envFileName := "fixtures/"
|
||||
envMap, err := Read(envFileName)
|
||||
|
||||
if err == nil {
|
||||
t.Errorf("Expected error, got %v", envMap)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user