Skip to content

Commit

Permalink
Increase log severity when a page's getStaticPaths fails (#10707)
Browse files Browse the repository at this point in the history
  • Loading branch information
horo-fox authored Apr 9, 2024
1 parent 70ac719 commit 5e044a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-geese-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Logs an error when a page's `getStaticPaths` fails
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 5e044a5

Please sign in to comment.