From cf775ded0eddec81c9b3cccf0c7c5cd22063da77 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 20 Apr 2017 15:18:12 -0400 Subject: [PATCH] config: Add 'list' to variable type error message --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index f944cadd32..09eabb0413 100644 --- a/config/config.go +++ b/config/config.go @@ -1017,7 +1017,7 @@ func (v *Variable) ValidateTypeAndDefault() error { // If an explicit type is declared, ensure it is valid if v.DeclaredType != "" { if _, ok := typeStringMap[v.DeclaredType]; !ok { - return fmt.Errorf("Variable '%s' must be of type string or map - '%s' is not a valid type", v.Name, v.DeclaredType) + return fmt.Errorf("Variable '%s' must be of type string, map, or list - '%s' is not a valid type", v.Name, v.DeclaredType) } }