Open anderseknert opened 4 days ago
I had this happen to me today, and while it was pretty easy to spot my mistake, the only useful information from the error message was the location. Simplified example:
package play import rego.v1 f(x) := x allow if { some x in f }
1 error occurred: policy.rego:8: rego_type_error: undefined ref: data.play.f[__local1__] data.play.f[__local1__] ^^^^^^^^^^^ have: (any) => any
Something like function f used as reference, not called (or whatever) would be a better way to explain the actual issue here.
function f used as reference, not called
I had this happen to me today, and while it was pretty easy to spot my mistake, the only useful information from the error message was the location. Simplified example:
Something like
function f used as reference, not called
(or whatever) would be a better way to explain the actual issue here.