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:
@ -15,12 +15,12 @@ func googleOauthConfigure() error {
|
||||
}
|
||||
|
||||
if os.Getenv("GOOGLE_KEY") == "" {
|
||||
logger.Errorf("GOOGLE_KEY not configured, but GOOGLE_SECRET is set")
|
||||
logger.Errorf("COMMENTO_GOOGLE_KEY not configured, but COMMENTO_GOOGLE_SECRET is set")
|
||||
return errorOauthMisconfigured
|
||||
}
|
||||
|
||||
if os.Getenv("GOOGLE_SECRET") == "" {
|
||||
logger.Errorf("GOOGLE_SECRET not configured, but GOOGLE_KEY is set")
|
||||
logger.Errorf("COMMENTO_GOOGLE_SECRET not configured, but COMMENTO_GOOGLE_KEY is set")
|
||||
return errorOauthMisconfigured
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user