Skip to content

Commit 5a71ccc

Browse files
devversionjelbourn
authored andcommitted
build: fix prerender test not reporting errors
The prerender test currently does not seem to report errors. This commit fixes the error reporting.
1 parent 90c1474 commit 5a71ccc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/universal-app/prerender.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ result
2626
writeFileSync(filename, content, 'utf-8');
2727
console.log('Prerender done.');
2828
})
29-
// If rendering the module factory fails, re-throw the error in order to print the
30-
// failure to the console, and to exit the process with a non-zero exit code.
29+
// If rendering the module factory fails, print the error and exit the process
30+
// with a non-zero exit code.
3131
.catch(error => {
32-
throw error;
32+
console.error(error);
33+
process.exit(1);
3334
});

0 commit comments

Comments
 (0)