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:
parent
354536042e
commit
814d7c1bd6
1 changed files with 14 additions and 12 deletions
|
@ -1169,6 +1169,20 @@ export const i18nNotEnabled = {
|
|||
hint: 'See https://docs.astro.build/en/guides/internationalization for a guide on setting up i18n.',
|
||||
} 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
|
||||
* @kind heading
|
||||
|
@ -1496,18 +1510,6 @@ export const UnsupportedConfigTransformError = {
|
|||
hint: 'See the devalue library for all supported types: https://github.com/rich-harris/devalue',
|
||||
} 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.
|
||||
export const UnknownError = { name: 'UnknownError', title: 'Unknown Error.' } satisfies ErrorData;
|
||||
|
||||
|
|
Loading…
Reference in a new issue