From 64483f56470848bac33893dad3344535607105fb Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Wed, 7 Aug 2019 20:41:03 +0200 Subject: [PATCH] Add info for geo point too --- libbeat/mapping/field.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/mapping/field.go b/libbeat/mapping/field.go index 5bb315915792..ac46b1fbf9f7 100644 --- a/libbeat/mapping/field.go +++ b/libbeat/mapping/field.go @@ -131,7 +131,7 @@ func (f *Field) validateType() error { case "date", "date_nanos": return errors.Wrapf(validateFormat(f.Format, "date"), "field %s", f.Name) case "geo_point": - return validateFormat(f.Format, "geo_point") + return errors.Wrapf(validateFormat(f.Format, "geo_point"), "field %s", f.Name) case "boolean", "binary", "ip", "alias", "array": if f.Format != "" { return fmt.Errorf("no format expected for field %s, found: %s", f.Name, f.Format)