Skip to content

Commit

Permalink
[GIB-118] - Detailed error message (#149)
Browse files Browse the repository at this point in the history
* [GIB-118] - Detailed error message

* Addressing Gal's comment

---------

Co-authored-by: Alex Toker <alex_toker@mckinsey.com>
  • Loading branch information
alxtkr77 and Alex Toker authored Jun 10, 2024
1 parent b5c2833 commit 6a96832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dataplane/http/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6a96832

Please sign in to comment.