Skip to content

Conversation

@brenank
Copy link
Contributor

@brenank brenank commented May 21, 2022

Fixes #238

If the custom func returns a non-nil error, that same error is returned from expr.Compile function.
This mirrors the existing behavior for this in expr.Run.

Related context: #159 (comment)

@brenank
Copy link
Contributor Author

brenank commented May 24, 2022

cc @ffenix113

@antonmedv antonmedv merged commit d71dab7 into expr-lang:master May 24, 2022
@brenank brenank deleted the brenan-hbo/fix-const-expr branch May 24, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error swallowed when using ConstExpr with a custom func returning an error

2 participants