MCPcopy Index your code
hub / github.com/remix-run/react-router / onError

Function onError

packages/create-react-router/index.ts:284–294  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

282 debug: ctx.debug,
283 token: ctx.token,
284 async onError(err) {
285 error(
286 "Oh no!",
287 err instanceof CopyTemplateError
288 ? err.message
289 : "Something went wrong. Run `create-react-router --debug` to see more info.\n\n" +
290 "Open an issue to report the problem at " +
291 "https://github.com/remix-run/react-router/issues/new",
292 );
293 throw err;
294 },
295 async log(message) {
296 if (ctx.debug) {
297 debug(message);

Callers

nothing calls this directly

Calls 1

errorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…