Panic when trying to generate non-existing type #396
Labels
Comments
|
@kennykerr @rylev I would like to take a shot at this issue. IIUC we need to make the error message more helpful. Is one solution here improving the error message ? |
|
Thanks for you willingness to help! Yes, the error message could be improved, but more importantly the span that indicates where the error occurred needs to be corrected to be the exact sequence of characters that caused the error. Whether it is is a missing module or a missing type, the macro should pinpoint and underline the offending entry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error message when trying to generate a type that does not exist is less than ideal:
Note that in a long list of types, if the non-existing type is not one of the first few, it won't even show in the error message span.
The text was updated successfully, but these errors were encountered: