diff --git a/.changeset/slimy-geese-own.md b/.changeset/slimy-geese-own.md new file mode 100644 index 0000000000..6fca5282ba --- /dev/null +++ b/.changeset/slimy-geese-own.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Logs an error when a page's `getStaticPaths` fails diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 7dc00073fc..d82ecdbd8d 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -335,7 +335,7 @@ async function getPathsForRoute( logger, ssr: serverLike, }).catch((err) => { - logger.debug('build', `├── ${bold(red('✗'))} ${route.component}`); + logger.error('build', `Failed to call getStaticPaths for ${route.component}`); throw err; });