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

Incorrect error message for an invalid transition delay #138

Closed
matthewtole opened this issue Aug 16, 2024 · 2 comments
Closed

Incorrect error message for an invalid transition delay #138

matthewtole opened this issue Aug 16, 2024 · 2 comments

Comments

@matthewtole
Copy link

I kept seeing this error in my project but couldn't figure out where I had an invalid boolean expression. It was only when I looked at where the error was throwing that I realized it was because I had an int value in the delay field.

if typeof(result) != TYPE_FLOAT:
push_error("Expression result is not a boolean. Returning false.")

Separate but related issue: the error messages would be more useful if they included details like the invalid value and what kind of property it's failing in.

Happy to make the changes myself, just following the rules about making an issue first.

@smile-coder
Copy link

Oh, it happened to me too, when I set the delay field to 0 instead of 0.0!

@derkork
Copy link
Owner

derkork commented Aug 17, 2024

I had another issue roughly in the same area, so i implemented this together with the fix for the other issue. thanks for reporting it!

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

No branches or pull requests

3 participants