From 11a792d96c4c02e0e2998bc3964fef78d3e85aee Mon Sep 17 00:00:00 2001 From: Odyssey Date: Sat, 17 Sep 2022 23:03:47 +0200 Subject: [PATCH] improve grammar here Signed-off-by: Odyssey --- config/authtoken.go | 2 +- config/hcaptchasecretkey.go | 2 +- config/hcaptchasitekey.go | 2 +- config/optionannounce.go | 2 +- config/optionform.go | 2 +- config/port.go | 2 +- config/webhook.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/authtoken.go b/config/authtoken.go index f9b7b2f..e332783 100644 --- a/config/authtoken.go +++ b/config/authtoken.go @@ -15,7 +15,7 @@ func AuthToken() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting segfautils.auth_token", err.Error()) + log.Println("Error reading config. Error getting: segfautils.auth_token", err.Error()) } result := viper.GetString("segfautils.auth_token") return result diff --git a/config/hcaptchasecretkey.go b/config/hcaptchasecretkey.go index e1cedca..b4834ed 100644 --- a/config/hcaptchasecretkey.go +++ b/config/hcaptchasecretkey.go @@ -11,7 +11,7 @@ func HCaptchaSecretKey() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting hcaptcha.secret_key", err.Error()) + log.Println("Error reading config. Error getting: hcaptcha.secret_key", err.Error()) } result := viper.GetString("hcaptcha.secret_key") return result diff --git a/config/hcaptchasitekey.go b/config/hcaptchasitekey.go index 599d81e..214ce6d 100644 --- a/config/hcaptchasitekey.go +++ b/config/hcaptchasitekey.go @@ -11,7 +11,7 @@ func HCaptchaSiteKey() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting hcaptcha.site_key", err.Error()) + log.Println("Error reading config. Error getting: hcaptcha.site_key", err.Error()) } result := viper.GetString("hcaptcha.site_key") return result diff --git a/config/optionannounce.go b/config/optionannounce.go index 06b1836..db2f184 100644 --- a/config/optionannounce.go +++ b/config/optionannounce.go @@ -11,7 +11,7 @@ func OptForm() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting options.form", err.Error()) + log.Println("Error reading config. Error getting: options.form", err.Error()) } result := viper.GetString("options.form") return result diff --git a/config/optionform.go b/config/optionform.go index 1f81ea7..7cb3bba 100644 --- a/config/optionform.go +++ b/config/optionform.go @@ -11,7 +11,7 @@ func OptAnn() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting options.announce", err.Error()) + log.Println("Error reading config. Error getting: options.announce", err.Error()) } result := viper.GetString("options.announce") return result diff --git a/config/port.go b/config/port.go index 0830001..66f57b2 100644 --- a/config/port.go +++ b/config/port.go @@ -12,7 +12,7 @@ func Port() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting segfautils.port", err.Error()) + log.Println("Error reading config. Error getting: segfautils.port", err.Error()) } result := strconv.Itoa(viper.GetInt("segfautils.port")) return result diff --git a/config/webhook.go b/config/webhook.go index 6c6b03a..2324f18 100644 --- a/config/webhook.go +++ b/config/webhook.go @@ -11,7 +11,7 @@ func WebhookURL() string { viper.AddConfigPath("./data") err := viper.ReadInConfig() if err != nil { - log.Println("Error reading config for getting segfautils.webhook_url", err.Error()) + log.Println("Error reading config. Error getting: segfautils.webhook_url", err.Error()) } result := viper.GetString("segfautils.webhook_url") return result