Skip to content

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
@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