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: