Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error even for invalid expression #49

Open
guilhermehubner opened this issue Oct 12, 2020 · 0 comments · May be fixed by #50
Open

No error even for invalid expression #49

guilhermehubner opened this issue Oct 12, 2020 · 0 comments · May be fixed by #50

Comments

@guilhermehubner
Copy link

guilhermehubner commented Oct 12, 2020

In the following code:

	result, err := gval.Evaluate("undefined_value == 10", map[string]interface{}{
		"whatever_var": "whatever_value",
	})
	fmt.Println(result, err)

I expect an error to be printed, instead it is printing: false, <nil>

@guilhermehubner guilhermehubner linked a pull request Oct 12, 2020 that will close this issue
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 a pull request may close this issue.

1 participant