MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / handleError

Method handleError

aff/aff.ts:312–321  ·  view source on GitHub ↗
(msg: Api.Message, error: any)

Source from the content-addressed store, hash-verified

310
311 const errorMsg = htmlEscape(error?.message || String(error) || "未知错误");
312
313 await msg.edit({
314 text: `❌ <b>操作失败:</b>${errorMsg}`,
315 parseMode: "html"
316 });
317 }
318}
319
320export default new AffPlugin();

Callers 1

handleAffCommandMethod · 0.95

Calls 3

htmlEscapeMethod · 0.95
errorMethod · 0.80
editMethod · 0.45

Tested by

no test coverage detected