@@ -1758,7 +1758,7 @@ func marshalVector(info VectorType, value interface{}) ([]byte, error) {
17581758 }
17591759 return buf .Bytes (), nil
17601760 }
1761- return nil , marshalErrorf ("can not marshal %T into %s" , value , info )
1761+ return nil , marshalErrorf ("can not marshal %T into %s. Accepted types: slice, array. " , value , info )
17621762}
17631763
17641764func unmarshalVector (info VectorType , data []byte , value interface {}) error {
@@ -1792,7 +1792,7 @@ func unmarshalVector(info VectorType, data []byte, value interface{}) error {
17921792 for i := 0 ; i < info .Dimensions ; i ++ {
17931793 offset := 0
17941794 if isVectorVariableLengthType (info .SubType ) {
1795- m , p , err := readUnsignedVint (data , 0 )
1795+ m , p , err := readUnsignedVInt (data , 0 )
17961796 if err != nil {
17971797 return err
17981798 }
@@ -1817,7 +1817,7 @@ func unmarshalVector(info VectorType, data []byte, value interface{}) error {
18171817 }
18181818 return nil
18191819 }
1820- return unmarshalErrorf ("can not unmarshal %s into %T" , info , value )
1820+ return unmarshalErrorf ("can not unmarshal %s into %T. Accepted types: slice, array. " , info , value )
18211821}
18221822
18231823func isVectorVariableLengthType (elemType TypeInfo ) bool {
@@ -1862,7 +1862,7 @@ func writeUnsignedVInt(buf *bytes.Buffer, v uint64) {
18621862 buf .Write (tmp )
18631863}
18641864
1865- func readUnsignedVint (data []byte , start int ) (uint64 , int , error ) {
1865+ func readUnsignedVInt (data []byte , start int ) (uint64 , int , error ) {
18661866 if len (data ) <= start {
18671867 return 0 , 0 , errors .New ("unexpected eof" )
18681868 }
0 commit comments