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

Function handleErrors

fixtures/fizz/server/server.js:86–94  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

84 });
85
86function handleErrors(fn) {
87 return async function (req, res, next) {
88 try {
89 return await fn(req, res);
90 } catch (x) {
91 next(x);
92 }
93 };
94}
95
96async function waitForWebpack() {
97 while (true) {

Callers 1

server.jsFile · 0.70

Calls 2

fnFunction · 0.50
nextFunction · 0.50

Tested by

no test coverage detected