MCPcopy
hub / github.com/facebook/react / handleErrors

Function handleErrors

fixtures/ssr2/server/server.js:73–81  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

71 });
72
73function handleErrors(fn) {
74 return async function (req, res, next) {
75 try {
76 return await fn(req, res);
77 } catch (x) {
78 next(x);
79 }
80 };
81}
82
83async function waitForWebpack() {
84 while (true) {

Callers 1

server.jsFile · 0.70

Calls 2

fnFunction · 0.50
nextFunction · 0.50

Tested by

no test coverage detected