mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 06:25:28 +08:00
[skip ci]Fix error log output format in schema.go (#13384)
Signed-off-by: JackLCL <chenglong.li@zilliz.com>
This commit is contained in:
parent
b79d751977
commit
e947c9959a
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user