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

Better error messages from PyObject.AsManagedObject and DelegateManager.TrueDispatch #1344

Merged
merged 1 commit into from Jan 5, 2021

Conversation

tminka
Copy link
Contributor

@tminka tminka commented Jan 4, 2021

What does this implement/fix? Explain your changes.

When Converter.ToManaged is called in a context where it must succeed, we can get a more precise error message by calling it with setError=true. This PR makes that change in two places.

Does this close any currently open issues?

No

Any other comments?

There are a few other places where a similar change could be made.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

DelegateManager.TrueDispatch gives a better error message
@lostmsu lostmsu merged commit 107c8b9 into pythonnet:master Jan 5, 2021
@tminka tminka deleted the error-messages branch January 5, 2021 00:19
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.

None yet

2 participants