MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isClientErrorCode

Function isClientErrorCode

apps/api/src/middleware/error-handler.ts:61–65  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

59 * attached, in development or anywhere else.
60 */
61export const stackFor = (
62 code: string,
63 error: unknown,
64 isDevelopment: boolean
65): string | undefined =>
66 isDevelopment && !isFrameworkCode(code) && error instanceof Error
67 ? error.stack
68 : undefined;

Callers 1

errorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected