From ac722c16f90e0e0dffc600c7f69e791c110d788c Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 24 May 2021 14:23:34 +1200 Subject: [PATCH] Small grammar fix in error message (#4406) --- schema/relationship.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/relationship.go b/schema/relationship.go index 62256c28..c7abc234 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -379,7 +379,7 @@ func (schema *Schema) guessRelation(relation *Relationship, field *Field, cgl gu schema.guessRelation(relation, field, guessEmbeddedHas) // case guessEmbeddedHas: default: - schema.err = fmt.Errorf("invalid field found for struct %v's field %v, need to define a valid foreign key for relations or it need to implement the Valuer/Scanner interface", schema, field.Name) + schema.err = fmt.Errorf("invalid field found for struct %v's field %v: define a valid foreign key for relations or implement the Valuer/Scanner interface", schema, field.Name) } }