Skip to content

Commit

Permalink
docs: revert to old error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Mar 13, 2023
1 parent 72b4a20 commit 13887e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati
code: 9001,
message: (collection: string, entryId: string, error: ZodError) => {
return [
`**${String(collection)}${String(entryId)}** frontmatter is invalid.`,
`**${String(collection)}${String(
entryId
)}** frontmatter does not match collection schema.`,
...error.errors.map((zodError) => zodError.message),
].join('\n');
},
Expand Down

0 comments on commit 13887e0

Please sign in to comment.