MCPcopy
hub / github.com/deepnote/deepnote / renderErrorOutput

Function renderErrorOutput

packages/cli/src/output-renderer.ts:73–84  ·  view source on GitHub ↗
(errorOutput: IError)

Source from the content-addressed store, hash-verified

71}
72
73function renderErrorOutput(errorOutput: IError): void {
74 const c = getChalk()
75 logError(c.red(`${errorOutput.ename}: ${errorOutput.evalue}`))
76
77 if (errorOutput.traceback && errorOutput.traceback.length > 0) {
78 for (const line of errorOutput.traceback) {
79 // Strip ANSI codes that might be in the traceback and apply our own styling
80 const cleanLine = stripVTControlCharacters(line)
81 logError(c.red(cleanLine))
82 }
83 }
84}

Callers 1

renderOutputFunction · 0.85

Calls 1

getChalkFunction · 0.90

Tested by

no test coverage detected