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

Function formatCause

src/formatters/ConsoleFormatter.ts:412–424  ·  view source on GitHub ↗
(
  cause: SymbolizedError | undefined,
  formatter: {isIgnored: IgnoreCheck},
)

Source from the content-addressed store, hash-verified

410}
411
412function formatCause(
413 cause: SymbolizedError | undefined,
414 formatter: {isIgnored: IgnoreCheck},
415): string[] {
416 if (!cause) {
417 return [];
418 }
419
420 return [
421 `Caused by: ${cause.message}`,
422 ...formatStackTraceInner(cause.stackTrace, cause.cause, formatter),
423 ];
424}

Callers 1

formatStackTraceInnerFunction · 0.85

Calls 1

formatStackTraceInnerFunction · 0.85

Tested by

no test coverage detected