0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

chore: move error in the correct section (#10980)

This commit is contained in:
Emanuele Stoppa 2024-05-09 10:52:15 +01:00 committed by GitHub
parent 354536042e
commit 814d7c1bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1169,6 +1169,20 @@ export const i18nNotEnabled = {
hint: 'See https://docs.astro.build/en/guides/internationalization for a guide on setting up i18n.', hint: 'See https://docs.astro.build/en/guides/internationalization for a guide on setting up i18n.',
} satisfies ErrorData; } satisfies ErrorData;
/**
* @docs
* @description
*
* Astro couldn't find a route matching the one provided by the user
*/
export const RouteNotFound = {
name: 'RouteNotFound',
title: 'Route not found.',
message: `Astro could not find a route that matches the one you requested.`,
} satisfies ErrorData;
/** /**
* @docs * @docs
* @kind heading * @kind heading
@ -1496,18 +1510,6 @@ export const UnsupportedConfigTransformError = {
hint: 'See the devalue library for all supported types: https://github.com/rich-harris/devalue', hint: 'See the devalue library for all supported types: https://github.com/rich-harris/devalue',
} satisfies ErrorData; } satisfies ErrorData;
/**
* @docs
* @description
*
* Astro couldn't find a route matching the one provided by the user
*/
export const RouteNotFound = {
name: 'RouteNotFound',
title: 'Route not found.',
message: `Astro could not find a route that matches the one you requested.`,
} satisfies ErrorData;
// Generic catch-all - Only use this in extreme cases, like if there was a cosmic ray bit flip. // Generic catch-all - Only use this in extreme cases, like if there was a cosmic ray bit flip.
export const UnknownError = { name: 'UnknownError', title: 'Unknown Error.' } satisfies ErrorData; export const UnknownError = { name: 'UnknownError', title: 'Unknown Error.' } satisfies ErrorData;