Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

268 B
Raw Blame
import { FastifyBaseLogger } from 'fastify'

export function rejectedPromiseHandler(promise: Promise<unknown>, log: FastifyBaseLogger) {
    promise.catch((error) => {
        log.error({ error }, '[rejectedPromiseHandler#catch] Unhandled promise rejection')
    })
}