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

Function formatError

src/cli.ts:990–995  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

988}
989
990function formatError(error: unknown) {
991 if (error instanceof Error) {
992 return error.stack || error.message;
993 }
994 return String(error);
995}
996
997function normalizeCliString(value: unknown): string | null {
998 const normalized = typeof value === 'string' ? value.trim() : '';

Callers 1

runWeixinServeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected