MCPcopy Index your code
hub / github.com/coder/code-server / logError

Function logError

src/common/util.ts:29–35  ·  view source on GitHub ↗
(logger: { error: (msg: string) => void }, prefix: string, err: unknown)

Source from the content-addressed store, hash-verified

27
28// TODO: Might make sense to add Error handling to the logger itself.
29export function logError(logger: { error: (msg: string) => void }, prefix: string, err: unknown): void {
30 if (err instanceof Error) {
31 logger.error(`${prefix}: ${err.message} ${err.stack}`)
32 } else {
33 logger.error(`${prefix}: ${err}`)
34 }
35}

Callers 3

constructorMethod · 0.90
ensureVSCodeLoadedFunction · 0.90
vscode.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected