diff --git a/builtin/providers/postgresql/helpers.go b/builtin/providers/postgresql/helpers.go index db61713dce..2be57bf396 100644 --- a/builtin/providers/postgresql/helpers.go +++ b/builtin/providers/postgresql/helpers.go @@ -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 } diff --git a/builtin/providers/postgresql/provider.go b/builtin/providers/postgresql/provider.go index 0c6aec01f9..d692ba2fb5 100644 --- a/builtin/providers/postgresql/provider.go +++ b/builtin/providers/postgresql/provider.go @@ -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 }