[skip ci]Fix error log output format in schema.go (#13384)

Signed-off-by: JackLCL <chenglong.li@zilliz.com>
This commit is contained in:
JackLCL 2021-12-22 09:59:56 +08:00 committed by GitHub
parent b79d751977
commit e947c9959a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ func (helper *SchemaHelper) GetPrimaryKeyField() (*schemapb.FieldSchema, error)
func (helper *SchemaHelper) GetFieldFromName(fieldName string) (*schemapb.FieldSchema, error) {
offset, ok := helper.nameOffset[fieldName]
if !ok {
return nil, fmt.Errorf("Failed to get field schema by name: fieldName(%s) not found", fieldName)
return nil, fmt.Errorf("failed to get field schema by name: fieldName(%s) not found", fieldName)
}
return helper.schema.Fields[offset], nil
}