From 0e445db7ff2d529c675cc9908aafad5c84f54ee6 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Tue, 12 Nov 2019 17:07:33 -0600 Subject: [PATCH] improve error message checking field type in import roaring --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index e028bc7ca..328d4d07c 100644 --- a/api.go +++ b/api.go @@ -387,7 +387,7 @@ func (api *API) ImportRoaring(ctx context.Context, indexName, fieldName string, // only set and time fields are supported if field.Type() != FieldTypeSet && field.Type() != FieldTypeTime { - return NewBadRequestError(errors.New("roaring import is only supported for set and time fields")) + return NewBadRequestError(errors.Errorf("roaring import is only supported for set and time fields, not '%s' fields.", field.Type())) } errCh := make(chan error, len(nodes))