Skip to content

Commit

Permalink
chore: move error in the correct section (withastro#10980)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored May 9, 2024
1 parent 3545360 commit 814d7c1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 814d7c1

Please sign in to comment.