0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

[error docs] Update error messages that reference src/content/ (#11943)

This commit is contained in:
Sarah Rainsberger 2024-09-07 16:14:22 -03:00 committed by GitHub
parent 50ca656dba
commit fa4671ca28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Updates error messages that assume content collections are located in `src/content/` with more generic language

View file

@ -1431,7 +1431,7 @@ export const GetEntryDeprecationError = {
* "title" is required.<br/>
* "date" must be a valid date.
* @description
* A Markdown or MDX entry in `src/content/` does not match its collection schema.
* A Markdown or MDX entry does not match its collection schema.
* Make sure that all required fields are present, and that all fields are of the correct type.
* You can check against the collection schema in your `src/content/config.*` file.
* See the [Content collections documentation](https://docs.astro.build/en/guides/content-collections/) for more information.
@ -1455,7 +1455,7 @@ export const InvalidContentEntryFrontmatterError = {
* @see
* - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/)
* @description
* An entry in `src/content/` has an invalid `slug`. This field is reserved for generating entry slugs, and must be a string when present.
* A collection entry has an invalid `slug`. This field is reserved for generating entry slugs, and must be a string when present.
*/
export const InvalidContentEntrySlugError = {
name: 'InvalidContentEntrySlugError',