From 50b4a2a4f79776fcf0d85a24445c8aabe283c1ce Mon Sep 17 00:00:00 2001 From: James Shubin Date: Tue, 24 Jun 2025 20:06:50 -0400 Subject: [PATCH] lang: ast: Make error message clearer --- lang/ast/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/ast/structs.go b/lang/ast/structs.go index 60ad9066..b48a48b2 100644 --- a/lang/ast/structs.go +++ b/lang/ast/structs.go @@ -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