MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / errorResponse

Function errorResponse

apps/desktop/main/api/errors.ts:129–137  ·  view source on GitHub ↗
(error: ApiError)

Source from the content-addressed store, hash-verified

127}
128
129export function errorResponse(error: ApiError) {
130 return {
131 success: false as const,
132 error: {
133 code: error.code,
134 message: error.message,
135 },
136 }
137}

Callers 6

authHookFunction · 0.90
createServerFunction · 0.90
handleUnifiedImportFunction · 0.90
handleLegacyImportFunction · 0.90
registerImportRoutesFunction · 0.90
registerSessionRoutesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected