Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ formatErrorMessage
Function
formatErrorMessage
apps/kimi-code/src/cli/sub/upgrade.ts:194–196 ·
view source on GitHub ↗
(error: unknown)
Source
from the content-addressed store, hash-verified
192
}
193
194
function
formatErrorMessage(error: unknown): string {
195
return
error instanceof Error ? error.message : String(error);
196
}
197
198
function
trackUpgradeEvent(
199
track: UpgradeTrack,
Callers
1
handleUpgrade
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected