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

Add error messages to BindingsGenerator #97194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobProductions
Copy link
Contributor

While experimenting with C# code generation to fix CI issues in #82198 , it became really useful to see exactly which types were coming up not found by adding an error message to the null checks. I pulled in those messages for this standalone PR to hopefully improve the debugging experience when a missing type causes an issue :)

Whenever _get_type_or_null is used, it already depends on the provided TypeReference not being null, so it is safe to print the cname in these messages. Let me know if it looks good, thanks!

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants