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

Use wrap_exc to add context to TypeSystem conversion errors #119

Open
JacobHayes opened this issue Nov 19, 2021 · 0 comments
Open

Use wrap_exc to add context to TypeSystem conversion errors #119

JacobHayes opened this issue Nov 19, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@JacobHayes
Copy link
Member

wrap_exc adds context as a prefix to exceptions raised within the with block. We could add this in TypeSystem.to_{artigraph,system} so that deeply nested conversion errors show what specific sub-conversion failed. We can likely just print the {type_}, though there may be a lot of repeated stuff for deeply nested Structs and such.

@JacobHayes JacobHayes added enhancement New feature or request good first issue Good for newcomers labels Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant