From 4992c87d4aaebded93e3e803b24494a50b4e9ab9 Mon Sep 17 00:00:00 2001 From: JackLCL Date: Mon, 13 Dec 2021 13:29:37 +0800 Subject: [PATCH] [skip ci]Fix error log output format in schema.go (#13231) Signed-off-by: JackLCL --- internal/util/typeutil/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/typeutil/schema.go b/internal/util/typeutil/schema.go index 426e669292..17af74203a 100644 --- a/internal/util/typeutil/schema.go +++ b/internal/util/typeutil/schema.go @@ -100,7 +100,7 @@ func CreateSchemaHelper(schema *schemapb.CollectionSchema) (*SchemaHelper, error // GetPrimaryKeyField returns the schema of the primary key func (helper *SchemaHelper) GetPrimaryKeyField() (*schemapb.FieldSchema, error) { if helper.primaryKeyOffset == -1 { - return nil, fmt.Errorf("Failed to get primary key field: no primary in schema") + return nil, fmt.Errorf("failed to get primary key field: no primary in schema") } return helper.schema.Fields[helper.primaryKeyOffset], nil }