diff --git a/cmd/sync/aws.go b/cmd/sync/aws.go index 02024c556..bcbb03111 100644 --- a/cmd/sync/aws.go +++ b/cmd/sync/aws.go @@ -260,7 +260,7 @@ func validateAWSConfig(cfg *awsConfig) error { } if len(cfg.Upstreams) == 0 { - return fmt.Errorf("There are no upstreams found in the config file") + return fmt.Errorf("there are no upstreams found in the config file") } for _, ups := range cfg.Upstreams { diff --git a/cmd/sync/azure.go b/cmd/sync/azure.go index 7ded91e3f..54da3c899 100644 --- a/cmd/sync/azure.go +++ b/cmd/sync/azure.go @@ -172,7 +172,7 @@ func validateAzureConfig(cfg *azureConfig) error { } if len(cfg.Upstreams) == 0 { - return fmt.Errorf("There are no upstreams found in the config file") + return fmt.Errorf("there are no upstreams found in the config file") } for _, ups := range cfg.Upstreams { diff --git a/cmd/sync/errormessages.go b/cmd/sync/errormessages.go index afddce0e0..184cfca63 100644 --- a/cmd/sync/errormessages.go +++ b/cmd/sync/errormessages.go @@ -1,16 +1,16 @@ package main const ( - errorMsgFormat = "The mandatory field %v is either empty or missing in the config file" - intervalErrorMsg = "The mandatory field sync_interval_in_seconds is either 0 or missing in the config file" - cloudProviderErrorMsg = "The field cloud_provider has invalid value %v in the config file" + errorMsgFormat = "the mandatory field %v is either empty or missing in the config file" + intervalErrorMsg = "the mandatory field sync_interval_in_seconds is either 0 or missing in the config file" + cloudProviderErrorMsg = "the field cloud_provider has invalid value %v in the config file" defaultCloudProvider = "AWS" - upstreamNameErrorMsg = "The mandatory field name is either empty or missing for an upstream in the config file" - upstreamErrorMsgFormat = "The mandatory field %v is either empty or missing for the upstream %v in the config file" - upstreamPortErrorMsgFormat = "The mandatory field port is either zero or missing for the upstream %v in the config file" - upstreamKindErrorMsgFormat = "The mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file" - upstreamMaxConnsErrorMsgFmt = "The field max_conns has invalid value %v in the config file" - upstreamMaxFailsErrorMsgFmt = "The field max_fails has invalid value %v in the config file" - upstreamFailTimeoutErrorMsgFmt = "The field fail_timeout has invalid value %v in the config file" - upstreamSlowStartErrorMsgFmt = "The field slow_start has invalid value %v in the config file" + upstreamNameErrorMsg = "the mandatory field name is either empty or missing for an upstream in the config file" + upstreamErrorMsgFormat = "the mandatory field %v is either empty or missing for the upstream %v in the config file" + upstreamPortErrorMsgFormat = "the mandatory field port is either zero or missing for the upstream %v in the config file" + upstreamKindErrorMsgFormat = "the mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file" + upstreamMaxConnsErrorMsgFmt = "the field max_conns has invalid value %v in the config file" + upstreamMaxFailsErrorMsgFmt = "the field max_fails has invalid value %v in the config file" + upstreamFailTimeoutErrorMsgFmt = "the field fail_timeout has invalid value %v in the config file" + upstreamSlowStartErrorMsgFmt = "the field slow_start has invalid value %v in the config file" )