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
Impove derive macro error message #62
Comments
Made a commit to master: d7d5f7d Let me know if that's what you were thinking! Changes the unwrap panic to compile error |
@sharksforarms looks good! and FYI there still are a few panics in Line 64 in d7d5f7d
Line 69 in d7d5f7d
Maybe hard to convert? |
Yes. Not exactly sure how to convert these. I'm using darling's |
Addressed in #61 |
Currently when an error happend in deive macro it will just panic, we should use
syn::Error::to_compile_error()
instead.For example, an invalid attribute give this message:
A better message could be:
The text was updated successfully, but these errors were encountered: