MCPcopy
hub / github.com/Bistutu/FluentRead / handleErrorClick

Function handleErrorClick

entrypoints/utils/icon.ts:76–84  ·  view source on GitHub ↗
(errMsg: string)

Source from the content-addressed store, hash-verified

74
75// 处理错误提示按钮点击事件
76function handleErrorClick(errMsg: string) {
77 return (event: MouseEvent) => {
78 event.preventDefault();
79 event.stopPropagation();
80
81 const message = getErrorMessage(errMsg);
82 sendErrorMessage(message); // 发送错误提示
83 };
84}
85
86// 根据错误信息返回错误提示
87function getErrorMessage(errMsg: string): string {

Callers 1

insertFailedTipFunction · 0.85

Calls 1

getErrorMessageFunction · 0.85

Tested by

no test coverage detected