From 54a64454b979c128b641beb8843a726baa4117ef Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Sun, 21 Dec 2014 11:24:10 -0800 Subject: [PATCH] validate: fix printing for non-string values --- config/validate/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/validate/rules.go b/config/validate/rules.go index 7651819..6da2772 100644 --- a/config/validate/rules.go +++ b/config/validate/rules.go @@ -76,7 +76,7 @@ func checkValidity(cfg node, report *Report) { func checkNodeValidity(n, g node, r *Report) { if err := config.AssertValid(n.Value, g.field.Tag.Get("valid")); err != nil { - r.Error(n.line, fmt.Sprintf("invalid value %v", n.Value)) + r.Error(n.line, fmt.Sprintf("invalid value %v", n.Value.Interface())) } switch g.Kind() { case reflect.Struct: