From a4965c01af7ffd0e1ff913623eeda6b889ba6ce0 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 12 Dec 2016 14:30:25 -0800 Subject: [PATCH] Fix up helpers. Pointed out by: @stack72 --- builtin/providers/postgresql/helpers.go | 2 +- builtin/providers/postgresql/provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/postgresql/helpers.go b/builtin/providers/postgresql/helpers.go index db61713dc..2be57bf39 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 0c6aec01f..d692ba2fb 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 }