From 6a96832915e3a332ba8fd56606938c063d843ab5 Mon Sep 17 00:00:00 2001 From: alxtkr77 <3098237+alxtkr77@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:30:14 +0300 Subject: [PATCH] [GIB-118] - Detailed error message (#149) * [GIB-118] - Detailed error message * Addressing Gal's comment --------- Co-authored-by: Alex Toker --- pkg/dataplane/http/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dataplane/http/context.go b/pkg/dataplane/http/context.go index a82768f..408aedb 100755 --- a/pkg/dataplane/http/context.go +++ b/pkg/dataplane/http/context.go @@ -1218,7 +1218,7 @@ func (c *context) encodeTypedAttributes(attributes map[string]interface{}) (map[ typedAttributes[attributeName] = make(map[string]interface{}) switch value := attributeValue.(type) { default: - return nil, fmt.Errorf("unexpected attribute type for %s: %T", attributeName, reflect.TypeOf(attributeValue)) + return nil, fmt.Errorf("unexpected attribute type for %s: %T", attributeName, value) case int: typedAttributes[attributeName]["N"] = strconv.Itoa(value) case uint64: