0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

feat: update errors

This commit is contained in:
Florian Lefebvre 2024-08-20 14:35:12 +02:00
parent 03abff116d
commit 5bde3883f0

View file

@ -1235,15 +1235,15 @@ export const RouteNotFound = {
/**
* @docs
* @description
* Some environment variables do not match the data type and/or properties defined in `experimental.env.schema`.
* Some environment variables do not match the data type and/or properties defined in `env.schema`.
* @message
* The following environment variables defined in `experimental.env.schema` are invalid.
* The following environment variables defined in `env.schema` are invalid.
*/
export const EnvInvalidVariables = {
name: 'EnvInvalidVariables',
title: 'Invalid Environment Variables',
message: (errors: Array<string>) =>
`The following environment variables defined in \`experimental.env.schema\` are invalid:\n\n${errors.map((err) => `- ${err}`).join('\n')}\n`,
`The following environment variables defined in \`env.schema\` are invalid:\n\n${errors.map((err) => `- ${err}`).join('\n')}\n`,
} satisfies ErrorData;
/**