Skip to content

Commit

Permalink
feat: show warn message if use sys & log the error
Browse files Browse the repository at this point in the history
  • Loading branch information
alfarih31 committed Dec 30, 2021
1 parent 0f03117 commit 3bc10b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func LoadEnv(envPath string, fallbackToWide ...bool) (Env, error) {
return nil, err
}

log.Println("Use System Wide Environment!")
log.Printf("%s \n %s", "Warning! You are use System Wide Environment due to this error:", err.Error())
return env{
envs: envs,
useDotEnv: false,
Expand Down

0 comments on commit 3bc10b5

Please sign in to comment.