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:
parent
70ac71904f
commit
5e044a5eaf
2 changed files with 6 additions and 1 deletions
5
.changeset/slimy-geese-own.md
Normal file
5
.changeset/slimy-geese-own.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Logs an error when a page's `getStaticPaths` fails
|
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue