tengu-alt commented on code in PR #1838:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1838#discussion_r1824161966


##########
marshal.go:
##########
@@ -333,7 +333,7 @@ func marshalVarchar(info TypeInfo, value interface{}) 
([]byte, error) {
        case k == reflect.Slice && t.Elem().Kind() == reflect.Uint8:
                return rv.Bytes(), nil
        }
-       return nil, marshalErrorf("can not marshal %T into %s", value, info)
+       return nil, marshalErrorf("can not marshal %T into %s. Accepted types: 
Marshaler, string, []byte, unsetColumn.", value, info)

Review Comment:
   Thank you, refactored



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to