-
-
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(images): Improve error handling around the new assets feature #6649
Conversation
🦋 Changeset detectedLatest commit: 8a1e64e 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 |
}, | ||
schema, | ||
{ description: undefined } | ||
{ description: '__image' } |
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.
Unrelated bug fix. Since we resetted the description
, the paths would always be relative to the first collection loaded instead of the one currently being rendered
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.
Good job @Princesseuh, added a few suggestions 🙌
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Investigating a Windows thing... Not too sure of the cause. |
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.
I am loving all these error message PRs! 🥳
Thanks, @Princesseuh for being such a champion of these! I made some non-blocking suggestions for you, to use as you see fit!
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Changes
This adds some more error handling around recently revamped features, notably Markdown (both frontmatter and content) will now error properly when images are not found.
This PR also does a very small logic fix to images in the frontmatter where images would sometimes be resolved from the wrong collection.
Testing
Added tests
Docs
cc @withastro/maintainers-docs ! Some new errors to look at in the classic
errors-data