Malformed entry filename is not reported #9711
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: content collections
Related to the Content Collections feature (scope)
feat: errors
Related to error handling / messages (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When an entry has an invalid frontmatter, the parsing library throws an error but the associated Astro error is irrelevant: it points to the
content/config.*
instead of the faulty file. For example, the following mdx filewill throw this:
What's the expected result?
Have a new error that specifies what file is failing. I don't think it's realistic to also want the exact location since it depends on the parsing library
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-se3vcm?file=src%2Fcontent%2Fblog%2Ffirst-post.md
Participation
The text was updated successfully, but these errors were encountered: