lang: ast: Make error message clearer

This commit is contained in:
James Shubin
2025-06-24 20:06:50 -04:00
parent f778008929
commit 50b4a2a4f7

View File

@@ -1820,7 +1820,7 @@ func (obj *StmtResField) TypeCheck(kind string) ([]*interfaces.UnificationInvari
typExpr, exists := typMap[obj.Field]
if !exists {
return nil, fmt.Errorf("field `%s` does not exist in `%s`", obj.Field, kind)
return nil, fmt.Errorf("field `%s` does not exist in `%s` resource", obj.Field, kind)
}
if typExpr == nil {
// possible programming error