Skip to content

Commit

Permalink
[error docs] Update error messages that reference src/content/ (#11943)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Sep 7, 2024
1 parent 50ca656 commit fa4671c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sharp-worms-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Updates error messages that assume content collections are located in `src/content/` with more generic language
4 changes: 2 additions & 2 deletions packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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',
Expand Down

0 comments on commit fa4671c

Please sign in to comment.