MCPcopy Create free account
hub / github.com/coder/mux / formatError

Function formatError

vscode/src/api/connectionCheck.ts:48–50  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

46}
47
48function formatError(error: unknown): string {
49 return error instanceof Error ? error.message : String(error);
50}
51
52function isUnauthorizedError(error: unknown): boolean {
53 const msg = formatError(error).toLowerCase();

Callers 3

isUnauthorizedErrorFunction · 0.70
checkServerReachableFunction · 0.70
checkAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected