Skip to content

Commit a4965c0

Browse files
committed
Fix up helpers.
Pointed out by: @stack72
1 parent c602f02 commit a4965c0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/providers/postgresql/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func pqQuoteLiteral(in string) string {
1818
func validateConnLimit(v interface{}, key string) (warnings []string, errors []error) {
1919
value := v.(int)
2020
if value < -1 {
21-
errors = append(errors, fmt.Errorf("%d can not be less than -1", key))
21+
errors = append(errors, fmt.Errorf("%s can not be less than -1", key))
2222
}
2323
return
2424
}

builtin/providers/postgresql/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func Provider() terraform.ResourceProvider {
8080
func validateConnTimeout(v interface{}, key string) (warnings []string, errors []error) {
8181
value := v.(int)
8282
if value < 0 {
83-
errors = append(errors, fmt.Errorf("%d can not be less than 0", key))
83+
errors = append(errors, fmt.Errorf("%s can not be less than 0", key))
8484
}
8585
return
8686
}

0 commit comments

Comments
 (0)