Skip to content
Snippets Groups Projects
Commit 4cc7432e authored by Giuseppe Digilio's avatar Giuseppe Digilio
Browse files

Print error message when error occurred on SSR

parent aea83ed6
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ export function startServer(bootstrap: Type<{}> | NgModuleFactory<{}>) {
function onHandleError(parentZoneDelegate, currentZone, targetZone, error) {
if (!res._headerSent) {
console.warn('Error in SSR, serving for direct CSR');
console.warn('Error in SSR, serving for direct CSR. Error details : ', error);
res.sendFile('index.csr.html', { root: './src' });
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment