Skip to content

Commit f218d8d

Browse files
authored
Fix error strings should not be capitalized (#193)
1 parent 943fed7 commit f218d8d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

cmd/sync/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func validateAWSConfig(cfg *awsConfig) error {
260260
}
261261

262262
if len(cfg.Upstreams) == 0 {
263-
return fmt.Errorf("There are no upstreams found in the config file")
263+
return fmt.Errorf("there are no upstreams found in the config file")
264264
}
265265

266266
for _, ups := range cfg.Upstreams {

cmd/sync/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func validateAzureConfig(cfg *azureConfig) error {
172172
}
173173

174174
if len(cfg.Upstreams) == 0 {
175-
return fmt.Errorf("There are no upstreams found in the config file")
175+
return fmt.Errorf("there are no upstreams found in the config file")
176176
}
177177

178178
for _, ups := range cfg.Upstreams {

cmd/sync/errormessages.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package main
22

33
const (
4-
errorMsgFormat = "The mandatory field %v is either empty or missing in the config file"
5-
intervalErrorMsg = "The mandatory field sync_interval_in_seconds is either 0 or missing in the config file"
6-
cloudProviderErrorMsg = "The field cloud_provider has invalid value %v in the config file"
4+
errorMsgFormat = "the mandatory field %v is either empty or missing in the config file"
5+
intervalErrorMsg = "the mandatory field sync_interval_in_seconds is either 0 or missing in the config file"
6+
cloudProviderErrorMsg = "the field cloud_provider has invalid value %v in the config file"
77
defaultCloudProvider = "AWS"
8-
upstreamNameErrorMsg = "The mandatory field name is either empty or missing for an upstream in the config file"
9-
upstreamErrorMsgFormat = "The mandatory field %v is either empty or missing for the upstream %v in the config file"
10-
upstreamPortErrorMsgFormat = "The mandatory field port is either zero or missing for the upstream %v in the config file"
11-
upstreamKindErrorMsgFormat = "The mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file"
12-
upstreamMaxConnsErrorMsgFmt = "The field max_conns has invalid value %v in the config file"
13-
upstreamMaxFailsErrorMsgFmt = "The field max_fails has invalid value %v in the config file"
14-
upstreamFailTimeoutErrorMsgFmt = "The field fail_timeout has invalid value %v in the config file"
15-
upstreamSlowStartErrorMsgFmt = "The field slow_start has invalid value %v in the config file"
8+
upstreamNameErrorMsg = "the mandatory field name is either empty or missing for an upstream in the config file"
9+
upstreamErrorMsgFormat = "the mandatory field %v is either empty or missing for the upstream %v in the config file"
10+
upstreamPortErrorMsgFormat = "the mandatory field port is either zero or missing for the upstream %v in the config file"
11+
upstreamKindErrorMsgFormat = "the mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file"
12+
upstreamMaxConnsErrorMsgFmt = "the field max_conns has invalid value %v in the config file"
13+
upstreamMaxFailsErrorMsgFmt = "the field max_fails has invalid value %v in the config file"
14+
upstreamFailTimeoutErrorMsgFmt = "the field fail_timeout has invalid value %v in the config file"
15+
upstreamSlowStartErrorMsgFmt = "the field slow_start has invalid value %v in the config file"
1616
)

0 commit comments

Comments
 (0)