MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / formatErrorMessage

Function formatErrorMessage

src/core/bridge_coordinator.ts:21385–21391  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

21383}
21384
21385function formatErrorMessage(error: unknown): string {
21386 if (error instanceof Error && error.message) {
21387 return error.message;
21388 }
21389 const fallback = String(error ?? '').trim();
21390 return fallback || 'Unknown error';
21391}
21392
21393function resolveInternalCodexNativeApiBaseUrl(env: NodeJS.ProcessEnv): string | null {
21394 const explicitBaseUrl = normalizeEnvString(env.CODEXBRIDGE_INTERNAL_NATIVE_API_BASE_URL);

Callers 1

handleWeiboCommandMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected