MCPcopy Index your code
hub / github.com/coder/mux / formatError

Function formatError

vscode/src/extension.ts:229–231  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

227 | { kind: "error"; baseUrl: string; error: string };
228
229function formatError(error: unknown): string {
230 return error instanceof Error ? error.message : String(error);
231}
232
233function describeFailure(failure: ApiConnectionFailure): string {
234 switch (failure.kind) {

Callers 12

tryGetApiClientFunction · 0.70
debugConnectionCommandFunction · 0.70
tryReadFromFilesFunction · 0.70
getWorkspacesForSidebarFunction · 0.70
disposeMethod · 0.70
resolveWebviewViewMethod · 0.70
postMessageMethod · 0.70
refreshWorkspacesMethod · 0.70
pumpOrpcStreamMethod · 0.70
handleOrpcCallMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected