brodieG / vetr

Trust, but Verify
79 stars 2 forks source link

Expressions evaluated in wrong environment #92

Closed brodieG closed 6 years ago

brodieG commented 6 years ago

Currently trying to evaluate the validation expressions with dots substituted in the function frame, when in reality it should be with the function params. This is likely a regression we introduced when we tried to produce the clearer error messages. We need to sub the param names, and then for producing the error, sub in the substituted language from the function call.