MCPcopy Index your code
hub / github.com/reactjs/server-components-demo / handleErrors

Function handleErrors

server/api.server.js:64–72  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

62 });
63
64function handleErrors(fn) {
65 return async function(req, res, next) {
66 try {
67 return await fn(req, res);
68 } catch (x) {
69 next(x);
70 }
71 };
72}
73
74app.get(
75 '/',

Callers 1

api.server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected