Skip to content

Commit bb24fa4

Browse files
committedMar 20, 2025
fix(@angular/build): correct handling of response/request errors
Prior to this change, request errors were not handled correctly. Closes #29884
1 parent 5169f21 commit bb24fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/angular/build/src/utils/server-rendering/launch-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function launchServer(): Promise<URL> {
3333
// handle request
3434
if (isSsrNodeRequestHandler(reqHandler)) {
3535
await reqHandler(req, res, (e) => {
36-
throw e;
36+
throw e ?? new Error(`Unable to handle request: ${req.url}.`);
3737
});
3838
} else {
3939
const webRes = await reqHandler(createWebRequestFromNodeRequest(req));

0 commit comments

Comments
 (0)
Failed to load comments.