feat: error message show field name

This commit is contained in:
zyp 2025-05-12 18:21:29 +08:00
parent e5b867e785
commit 4b7674a3b6

View File

@ -78,7 +78,7 @@ func (schema *Schema) parseRelation(field *Field) *Relationship {
cacheStore := schema.cacheStore
if relation.FieldSchema, err = getOrParse(fieldValue, cacheStore, schema.namer); err != nil {
schema.err = err
schema.err = fmt.Errorf("%w. The field name is %s", err, field.Name)
return nil
}