MCPcopy
hub / github.com/cursor/cookbook / getErrorMessage

Function getErrorMessage

sdk/coding-agent-cli/src/tui/App.tsx:1010–1012  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1008}
1009
1010function getErrorMessage(error: unknown) {
1011 return error instanceof Error ? error.message : String(error)
1012}
1013
1014function modelKey(choice: ModelChoice) {
1015 return modelKeyFromSelection(choice.value)

Callers 5

openModelPickerFunction · 0.70
resetAgentFunction · 0.70
switchExecutionModeFunction · 0.70
sendPromptFunction · 0.70
cancelActiveRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected