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 {
|
if v, ok := os.LookupEnv(key); ok {
|
||||||
return v
|
return v
|
||||||
} else {
|
} 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