From 08c56a1132c926567c718c0cb592ca05fa4a89b4 Mon Sep 17 00:00:00 2001 From: jose antonio <52543837+mfdeveloper508@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:54:41 -0500 Subject: [PATCH] change error message Co-authored-by: Pavel Gabriel --- field/binary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field/binary.go b/field/binary.go index 7c9c3df..6d600c5 100644 --- a/field/binary.go +++ b/field/binary.go @@ -134,7 +134,7 @@ func (f *Binary) Unmarshal(v interface{}) error { val.SetBytes(f.value) default: - return fmt.Errorf("data does not match required reflect.Value type") + return fmt.Errorf("unsupported reflect.Value type: %s", val.Kind()) } case *string: str := hex.EncodeToString(f.value)