Skip to content

Commit

Permalink
change error message
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Gabriel <[email protected]>
  • Loading branch information
mfdeveloper508 and alovak authored Oct 2, 2023
1 parent a88931a commit 08c56a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08c56a1

Please sign in to comment.