(errorOutput: IError)
| 71 | } |
| 72 | |
| 73 | function 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 | } |
no test coverage detected