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 08c56a1 commit adfa888
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 @@ -144,7 +144,7 @@ func (f *Binary) Unmarshal(v interface{}) error {
case *Binary:
val.value = f.value
default:
return fmt.Errorf("data does not match required *Binary or (*string, *[]byte) type")
return fmt.Errorf("unsupported type: expected *Binary, *string, *[]byte, or reflect.Value, got %T", v)
}

return nil
Expand Down

0 comments on commit adfa888

Please sign in to comment.