We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c1474 commit 5a71cccCopy full SHA for 5a71ccc
src/universal-app/prerender.ts
@@ -26,8 +26,9 @@ result
26
writeFileSync(filename, content, 'utf-8');
27
console.log('Prerender done.');
28
})
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.
+ // If rendering the module factory fails, print the error and exit the process
+ // with a non-zero exit code.
31
.catch(error => {
32
- throw error;
+ console.error(error);
33
+ process.exit(1);
34
});
0 commit comments