mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
api: use COMMENTO_ prefix on errors
Closes https://gitlab.com/commento/commento-ce/issues/44
This commit is contained in:
@ -47,7 +47,7 @@ func parseConfig() error {
|
||||
// Mandatory config parameters
|
||||
for _, env := range []string{"POSTGRES", "PORT", "ORIGIN"} {
|
||||
if os.Getenv(env) == "" {
|
||||
logger.Errorf("missing %s environment variable", env)
|
||||
logger.Errorf("missing COMMENTO_%s environment variable", env)
|
||||
return errorMissingConfig
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user