Skip to content

Commit

Permalink
Merge pull request #15885 from BlackHole1/next
Browse files Browse the repository at this point in the history
fix(build): avoid logging an object on compilation errors
  • Loading branch information
ndelangen authored Jun 30, 2022
2 parents 3d3eba4 + 8b4f8ee commit 3c7d933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core-server/src/build-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ export async function buildStatic({ packageJson, ...loadOptions }: LoadOptions)
try {
await buildStaticStandalone(options);
} catch (error) {
logger.error(error);
if (error instanceof Error) {
logger.error(error.stack || error.message);
}

const presets = loadAllPresets({
corePresets: [require.resolve('./presets/common-preset')],
Expand Down

0 comments on commit 3c7d933

Please sign in to comment.