MCPcopy Create free account
hub / github.com/blockmatic/basilic / error-handler.ts

File error-handler.ts

apps/api/src/plugins/error-handler.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { captureError } from '@repo/error/node'
2import { pathOnlyUrl } from '@repo/utils/logger/types'
3import type { FastifyError, FastifyPluginAsync } from 'fastify'
4import fp from 'fastify-plugin'

Callers

nothing calls this directly

Calls 5

extractModuleFromRouteFunction · 0.85
redactHeadersFunction · 0.85
redactBodyFunction · 0.85
mapHttpStatusToErrorCodeFunction · 0.85
getErrorFunction · 0.85

Tested by

no test coverage detected