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

Hit panic in add_type #661

Open
aatifsyed opened this issue Aug 20, 2024 · 0 comments
Open

Hit panic in add_type #661

aatifsyed opened this issue Aug 20, 2024 · 0 comments

Comments

@aatifsyed
Copy link

I am writing a codegen tool for non-rust users, and I fall afoul of this unwrap:

let name = get_type_name(&type_name, metadata).unwrap();

It would be great to propagate errors to library users, so that I can tell my users what changes their spec requires.

Here's an abridged stack trace:

     4: typify_impl::type_entry::TypeEntryStruct::from_metadata
     5: typify_impl::convert::<impl typify_impl::TypeSpace>::convert_object
     6: typify_impl::convert::<impl typify_impl::TypeSpace>::convert_schema_object
     7: typify_impl::convert::<impl typify_impl::TypeSpace>::convert_schema_object
     8: typify_impl::convert::<impl typify_impl::TypeSpace>::convert_schema
     9: typify_impl::TypeSpace::id_for_schema
    10: typify_impl::TypeSpace::add_type_with_name
    11: typify_impl::TypeSpace::add_type
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

No branches or pull requests

1 participant