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

Function describeReason

parsehub/parsehub.ts:219–232  ·  view source on GitHub ↗
(reason?: RelayReason)

Source from the content-addressed store, hash-verified

217 }
218 } catch {}
219 return 0;
220}
221
222type RelayReason = "timeout" | "fetch_failed" | "send_failed" | "no_client";
223
224interface RelayOutcome {
225 lastId: number;
226 forwarded: boolean;
227 reason?: RelayReason;
228 error?: string;
229}
230
231const describeReason = (reason?: RelayReason): string => {
232 switch (reason) {
233 case "timeout":
234 return "等待超时";
235 case "fetch_failed":

Callers 1

ParseHubPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected