MCPcopy Create free account
hub / github.com/TanStack/ai / getErrorMessage

Function getErrorMessage

examples/ts-react-native-chat/src/server/app.ts:378–380  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

376}
377
378function getErrorMessage(error: unknown): string {
379 return error instanceof Error ? error.message : 'Bad request'
380}
381
382function getRequestRunContext(body: unknown) {
383 if (!body || typeof body !== 'object') return {}

Callers 1

createErrorStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected