lang: Clarify error message about missing field

User probably just mistyped a field name. Make that clear.
This commit is contained in:
James Shubin
2019-09-06 01:48:21 -04:00
parent b79e48dd77
commit f1eedc7a01

View File

@@ -1257,7 +1257,7 @@ func (obj *StmtResField) Unify(kind string) ([]interfaces.Invariant, error) {
typ, exists := typMap[obj.Field]
if !exists {
return nil, fmt.Errorf("could not determine type for `%s` field of `%s`", obj.Field, kind)
return nil, fmt.Errorf("field `%s` does not exist in `%s`", obj.Field, kind)
}
invar := &unification.EqualsInvariant{
Expr: obj.Value,