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

Method formatError

deepwiki/deepwiki.ts:720–724  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

718 }
719
720 private formatError(err: any): string {
721 if (err instanceof UserError) return `🚫 ${err.message}`;
722 const msg = typeof err?.message === "string" ? err.message : String(err);
723 return `❌ <b>错误:</b> ${escapeHtml(msg)}`;
724 }
725
726 private async ensureTelegraphToken(token?: string): Promise<string> {
727 const existing = token || (await this.store.getTelegraphToken());

Callers 1

DeepWikiPluginClass · 0.95

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected