MCPcopy
hub / github.com/Kong/insomnia / onError

Function onError

packages/insomnia/src/entry.server.tsx:50–58  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

48 reject(error);
49 },
50 onError(error: unknown) {
51 responseStatusCode = 500;
52 // Log streaming rendering errors from inside the shell. Don't log
53 // errors encountered during initial shell rendering since they'll
54 // reject and get logged in handleDocumentRequest.
55 if (shellRendered) {
56 console.error(error);
57 }
58 },
59 });
60
61 // Abort the rendering stream after the `streamTimeout` so it has time to

Callers 1

MemberListItemFunction · 0.50

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected