Fix up helpers.

Pointed out by: @stack72
This commit is contained in:
Sean Chittenden 2016-12-12 14:30:25 -08:00
parent c602f024f4
commit a4965c01af
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ func pqQuoteLiteral(in string) string {
func validateConnLimit(v interface{}, key string) (warnings []string, errors []error) {
value := v.(int)
if value < -1 {
errors = append(errors, fmt.Errorf("%d can not be less than -1", key))
errors = append(errors, fmt.Errorf("%s can not be less than -1", key))
}
return
}

View File

@ -80,7 +80,7 @@ func Provider() terraform.ResourceProvider {
func validateConnTimeout(v interface{}, key string) (warnings []string, errors []error) {
value := v.(int)
if value < 0 {
errors = append(errors, fmt.Errorf("%d can not be less than 0", key))
errors = append(errors, fmt.Errorf("%s can not be less than 0", key))
}
return
}