[skip ci]Fix error log output format in convension.go (#13228)

Signed-off-by: JackLCL <chenglong.li@zilliz.com>
This commit is contained in:
JackLCL 2021-12-13 13:26:08 +08:00 committed by GitHub
parent 25c2935324
commit d6cb943f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ func BytesToFloat32(bytes []byte) float32 {
// BytesToInt64 converts a byte slice to uint64.
func BytesToInt64(b []byte) (int64, error) {
if len(b) != 8 {
return 0, fmt.Errorf("Failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b))
return 0, fmt.Errorf("failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b))
}
return int64(common.Endian.Uint64(b)), nil