MCPcopy Create free account
hub / github.com/experdot/pointer / sendError

Method sendError

src/main/aiHandler.ts:146–151  ·  view source on GitHub ↗

* 发送错误消息给渲染进程

(event: Electron.IpcMainInvokeEvent, eventChannel: string, error: string)

Source from the content-addressed store, hash-verified

144 * 发送错误消息给渲染进程
145 */
146 private sendError(event: Electron.IpcMainInvokeEvent, eventChannel: string, error: string): void {
147 event.sender.send(eventChannel, {
148 type: 'error',
149 error
150 } as AIStreamChunk)
151 }
152
153 /**
154 * 发送完成消息给渲染进程

Callers 2

processStreamResponseMethod · 0.95
sendMessageStreamingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected