MCPcopy Create free account
hub / github.com/callstack/agent-device / batchErrorResponse

Function batchErrorResponse

src/core/batch.ts:299–308  ·  view source on GitHub ↗
(
  code: string,
  message: string,
  details?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

297}
298
299function batchErrorResponse(
300 code: string,
301 message: string,
302 details?: Record<string, unknown>,
303): Extract<DaemonResponse, { ok: false }> {
304 return {
305 ok: false,
306 error: { code, message, ...(details ? { details } : {}) },
307 };
308}

Callers 1

runBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…