Skip to content

Commit 6a96832

Browse files
alxtkr77Alex Toker
andauthored
[GIB-118] - Detailed error message (#149)
* [GIB-118] - Detailed error message * Addressing Gal's comment --------- Co-authored-by: Alex Toker <alex_toker@mckinsey.com>
1 parent b5c2833 commit 6a96832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dataplane/http/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ func (c *context) encodeTypedAttributes(attributes map[string]interface{}) (map[
12181218
typedAttributes[attributeName] = make(map[string]interface{})
12191219
switch value := attributeValue.(type) {
12201220
default:
1221-
return nil, fmt.Errorf("unexpected attribute type for %s: %T", attributeName, reflect.TypeOf(attributeValue))
1221+
return nil, fmt.Errorf("unexpected attribute type for %s: %T", attributeName, value)
12221222
case int:
12231223
typedAttributes[attributeName]["N"] = strconv.Itoa(value)
12241224
case uint64:

0 commit comments

Comments
 (0)