Skip to content

Commit

Permalink
print warnings before throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 11, 2024
1 parent a4011c0 commit 3af9697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus/src/ssg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ export async function generateStaticFiles({
{concurrency: Concurrency},
);

printSSGWarnings(results);

const [allSSGErrors, allSSGSuccesses] = _.partition(
results,
(result): result is SSGError => !!result.error,
Expand All @@ -232,8 +234,6 @@ export async function generateStaticFiles({
});
}

printSSGWarnings(results);

const collectedData: SiteCollectedData = _.chain(allSSGSuccesses)
.keyBy((success) => success.pathname)
.mapValues((ssgSuccess) => ssgSuccess.result.collectedData)
Expand Down

0 comments on commit 3af9697

Please sign in to comment.