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:
parent
50ca656dba
commit
fa4671ca28
2 changed files with 7 additions and 2 deletions
5
.changeset/sharp-worms-sniff.md
Normal file
5
.changeset/sharp-worms-sniff.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Updates error messages that assume content collections are located in `src/content/` with more generic language
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue