Skip to content

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

Merged
Lunderberg merged 2 commits into
apache:unityfrom
Lunderberg:unity_improved_wording_re_emit_binding_error
Jan 8, 2024
Merged

Lunderberg merged 2 commits into
apache:unityfrom
Lunderberg:unity_improved_wording_re_emit_binding_error

Conversation

@Lunderberg

Copy link
Copy Markdown
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.

@slyubomirsky slyubomirsky left a comment

Copy link
Copy Markdown
Contributor

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