lang: Clarify error message about missing field
User probably just mistyped a field name. Make that clear.
This commit is contained in:
@@ -1257,7 +1257,7 @@ func (obj *StmtResField) Unify(kind string) ([]interfaces.Invariant, error) {
|
|||||||
|
|
||||||
typ, exists := typMap[obj.Field]
|
typ, exists := typMap[obj.Field]
|
||||||
if !exists {
|
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{
|
invar := &unification.EqualsInvariant{
|
||||||
Expr: obj.Value,
|
Expr: obj.Value,
|
||||||
|
|||||||
Reference in New Issue
Block a user