Better error message on missing envs
This commit is contained in:
parent
bf0ce5c963
commit
464cf3ec7e
@ -185,7 +185,8 @@ func confEnv(key string) string {
|
||||
if v, ok := os.LookupEnv(key); ok {
|
||||
return v
|
||||
} else {
|
||||
panic(fmt.Sprintf("Missing required environment variable '%s'", key))
|
||||
log.Fatal().Msg(fmt.Sprintf("Missing required environment variable '%s'", key))
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user