[skip ci]Improve error message in schema (#10354)

Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
pull/10387/head
Xiangyu Wang 2021-10-21 19:44:19 +08:00 committed by GitHub
parent c3e8903dc2
commit ff71f53877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,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("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
}