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

[Unity] Improved error message in ExprMutator::ReEmitBinding #16307

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, an error message would occur in ExprMutator::ReEmitBinding if the struct info is missing from the generated value. However, because this error was generated from inside GetStructInfo, it didn't include sufficient context for debugging. This commit checks the struct info explicitly, and includes the context of the updated variable in the error message.

Prior to this commit, an error message would occur in
`ExprMutator::ReEmitBinding` if the struct info is missing from the
generated value.  However, because this error was generated from
inside `GetStructInfo`, it didn't include sufficient context for
debugging.  This commit checks the struct info explicitly, and
includes the context of the updated variable in the error message.
Copy link
Contributor

@slyubomirsky slyubomirsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good tweak.

@Lunderberg Lunderberg merged commit b22aa0f into apache:unity Jan 8, 2024
15 checks passed
@Lunderberg Lunderberg deleted the unity_improved_wording_re_emit_binding_error branch January 8, 2024 22:05
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.

2 participants