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

Function getErrorMessage

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

Source from the content-addressed store, hash-verified

8import {logger} from './logger.js';
9
10export function getErrorMessage(err: unknown): string {
11 return err instanceof Error ? err.message : String(err);
12}
13
14export function toError(err: unknown): Error {
15 return err instanceof Error ? err : new Error(String(err));

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected