Skip to content

Commit 00e000c

Browse files
ndeloofglours
authored andcommitted
prevent panic
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 12bb062 commit 00e000c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ func WithEnvFiles(file ...string) ProjectOptionsFn {
283283
if os.IsNotExist(err) {
284284
return nil
285285
}
286+
if err != nil {
287+
return err
288+
}
286289
if !s.IsDir() {
287290
o.EnvFiles = []string{defaultDotEnv}
288291
}

0 commit comments

Comments
 (0)