MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getErrorMessage

Function getErrorMessage

src/utils/errorHandling.ts:67–69  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

65}
66
67export function getErrorMessage(err: unknown): string {
68 return err instanceof Error ? err.message : String(err);
69}
70
71export function toError(err: unknown): Error {
72 return err instanceof Error ? err : new Error(String(err));

Callers 9

watchConfigMethod · 0.85
#reloadConfigMethod · 0.85
handleMethod · 0.85
configureWebAuthnMethod · 0.85
stopDaemonFunction · 0.85
startMethod · 0.85
parseConfigFileMethod · 0.85
parseConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected