-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix: add property name to rss errors #6259
Conversation
🦋 Changeset detectedLatest commit: 3fcbdee The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM but I'd love for @bholmesdev to take a look as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, valigreat fix! Thanks for this 👍
@y-nk Should be good to merge once you add a changeset. Run |
Thanks @y-nk! I added a changeset for you so we can go ahead and merge this! |
thanks a lot @natemoo-re 🙏🙏🙏 |
Changes
What does this change?
Add more information to zod error report
Be short and concise. Bullet points can help!
When generating a rss feed with the rss function, if one prop of an item is missing, the only feedback will be
Invalid input
without much of where is the invalid input.Testing
I've added a prop on a string based on zod's doc here: https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md#zodissue
Not sure if this must be tested.
Docs
No doc as well, it's rather enhanced error handling.