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

Function getRpcErrorMessage

bs/bs.ts:405–411  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

403}
404
405function getRpcErrorMessage(error: any): string {
406 if (!error) return "";
407 if (error instanceof RPCError) return error.errorMessage;
408 if (typeof error.errorMessage === "string") return error.errorMessage;
409 if (typeof error.message === "string") return error.message;
410 return String(error);
411}
412
413function isPermissionError(message: string): boolean {
414 const codes = [

Callers 2

forwardToTargetFunction · 0.85
BsPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected