MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getErrorMessage

Function getErrorMessage

web/src/app/api/v1/gravity-index/_post.ts:30–35  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

28}
29
30const getErrorMessage = (value: unknown): string | undefined => {
31 if (!value || typeof value !== 'object') return undefined
32 const record = value as Record<string, unknown>
33 const message = record.error ?? record.message
34 return typeof message === 'string' ? message : undefined
35}
36
37const redactGravityApiKey = (
38 text: string,

Callers 1

postGravityIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected