(cli *cli, s eventSummary)
| 639 | } |
| 640 | |
| 641 | func renderErrorEvent(cli *cli, s eventSummary) { |
| 642 | ts := time.Now() |
| 643 | line := fmt.Sprintf( |
| 644 | "%s %s %s %s", |
| 645 | ansi.Faint(ts.Local().Format("15:04:05")), |
| 646 | ansi.Bold(colorForEventType(padRight("error", eventTypeColWidth))), |
| 647 | ansi.BrightRed(padRight(s.errorCode, eventSourceColWidth)), |
| 648 | s.errorMessage, |
| 649 | ) |
| 650 | cli.renderer.Output(line) |
| 651 | } |
| 652 | |
| 653 | // padRight pads s with spaces to width, or returns s unchanged if it already |
| 654 | // exceeds width. |
no test coverage detected