FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Better error messages from PyObject.AsManagedObject and DelegateManager.TrueDispatch by tminka · Pull Request #1344 · pythonnet/pythonnet · GitHub

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

Merged
lostmsu merged 1 commit into
pythonnet:masterfrom
tminka:error-messages
Jan 5, 2021
Merged

Better error messages from PyObject.AsManagedObject and DelegateManager.TrueDispatch#1344
lostmsu merged 1 commit into
pythonnet:masterfrom
tminka:error-messages

Conversation

tminka commented Jan 4, 2021

Copy link
Copy Markdown
Contributor

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 merged commit 107c8b9 into pythonnet:master Jan 5, 2021
tminka deleted the error-messages branch January 5, 2021 00:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL