Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
64
function
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
74
app.get(
75
'/'
,
Callers
1
api.server.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected