MCPcopy
hub / github.com/modstart-lib/aigcpanel / reportErrorRender

Function reportErrorRender

electron/mapi/log/beacon-render.ts:53–73  ·  view source on GitHub ↗
(
    msg: string,
    stack?: string,
    src?: string,
    line?: number,
    col?: number,
    path = "/renderer",
)

Source from the content-addressed store, hash-verified

51};
52
53export const reportErrorRender = (
54 msg: string,
55 stack?: string,
56 src?: string,
57 line?: number,
58 col?: number,
59 path = "/renderer",
60) => {
61 if (!isPackaged) return;
62 pending.push({
63 et: "error",
64 path,
65 did: "renderer",
66 sid: sessionId,
67 ts: Date.now(),
68 type: `app-${AppConfig.version}`,
69 bid: buildId,
70 props: { msg, stack, src, line, col },
71 });
72 schedule();
73};

Callers 1

main.tsFile · 0.90

Calls 1

scheduleFunction · 0.70

Tested by

no test coverage detected