Skip to content

Commit

Permalink
Improve ANSI sequences in error log
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpt-erikgeiser committed Sep 19, 2023
1 parent 5cfb88f commit 984d875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ func (m *model) errorsView() string {
return ""
}

view := m.style(bold) + "Errors:\n" + m.style() + m.style(yellow)
view := m.style(bold) + "Errors:\n" + m.style()

for _, err := range m.errors {
view += fmt.Sprintf(" ➜ %s: %s\n", formatTime(err.Time), err.Error.Error())
view += fmt.Sprintf("%s ➜ %s: %s%s\n", m.style(yellow), formatTime(err.Time), err.Error.Error(), m.style())
}

return view + m.style() + "\n"
return view + "\n"
}

func (m *model) listenerConfigView() string {
Expand Down

0 comments on commit 984d875

Please sign in to comment.