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

fix: add property name to rss errors #6259

Merged
merged 4 commits into from
Feb 16, 2023
Merged

Conversation

y-nk
Copy link
Contributor

@y-nk y-nk commented Feb 16, 2023

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.

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2023

🦋 Changeset detected

Latest 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

Copy link
Member

@natemoo-re natemoo-re left a 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

Copy link
Contributor

@bholmesdev bholmesdev left a 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 👍

@bholmesdev
Copy link
Contributor

@y-nk Should be good to merge once you add a changeset. Run pnpm changeset at the repository root and choose a patch release.

@natemoo-re
Copy link
Member

Thanks @y-nk! I added a changeset for you so we can go ahead and merge this!

@natemoo-re natemoo-re merged commit dbffee4 into withastro:main Feb 16, 2023
@astrobot-houston astrobot-houston mentioned this pull request Feb 16, 2023
@y-nk
Copy link
Contributor Author

y-nk commented Feb 17, 2023

thanks a lot @natemoo-re 🙏🙏🙏

@y-nk y-nk deleted the patch-1 branch February 17, 2023 00:38
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

Successfully merging this pull request may close these issues.

3 participants