MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / addContextError

Function addContextError

packages/cli/src/commands/preview.ts:351–360  ·  view source on GitHub ↗
(
  payload: Record<string, unknown>,
  field: ContextField,
  error: { code: string; message: string },
)

Source from the content-addressed store, hash-verified

349}
350
351function addContextError(
352 payload: Record<string, unknown>,
353 field: ContextField,
354 error: { code: string; message: string },
355): void {
356 payload.errors = {
357 ...((payload.errors as Record<string, unknown> | undefined) ?? {}),
358 [field]: error,
359 };
360}
361
362async function printCurrentSelection(
363 projectDir: string,

Callers 1

printCurrentContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected