MCPcopy
hub / github.com/wdjungst/react-project / onError

Function onError

modules/PublicServerAPI.js:154–163  ·  view source on GitHub ↗
(err, req, res)

Source from the content-addressed store, hash-verified

152}
153
154function onError(err, req, res) {
155 res.status(500).send(renderToStaticMarkup(
156 <ErrorMessage>
157 <p>
158 Unknown error occured:
159 </p>
160 <pre>{err.message}</pre>
161 </ErrorMessage>
162 ))
163}
164
165function getWebpackStats() {
166 const file = path.resolve(APP_PATH, '.build', 'stats.json')

Callers 2

createServerFunction · 0.85
sendWithReactRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected