MCPcopy Index your code
hub / github.com/rilldata/rill / sendError

Function sendError

web-common/src/lib/rpc.ts:70–77  ·  view source on GitHub ↗
(
  id: string | number | null,
  error: { code: number; message: string; data?: unknown },
)

Source from the content-addressed store, hash-verified

68}
69
70function sendError(
71 id: string | number | null,
72 error: { code: number; message: string; data?: unknown },
73) {
74 if (window.parent !== window) {
75 window.parent.postMessage({ id, error } as JSONRPCResponse, "*");
76 }
77}
78
79export function createIframeRPCHandler() {
80 const handler = (event: MessageEvent) => {

Callers 1

handleRPCMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected