0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

Increase log severity when a page's getStaticPaths fails (#10707)

This commit is contained in:
horo 2024-04-09 12:19:26 +09:00 committed by GitHub
parent 70ac71904f
commit 5e044a5eaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Logs an error when a page's `getStaticPaths` fails

View file

@ -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;
});