fix: better error display in TUI
- always show `client.LasErr` if not `nil`
This commit is contained in:
parent
d25ce3eead
commit
b7fc646cc0
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ func (a app) View() string {
|
||||||
desktopNotifications(a.pomodoro)
|
desktopNotifications(a.pomodoro)
|
||||||
}
|
}
|
||||||
|
|
||||||
serverStatus = colour.Sprintf("^D^1disconnected: %v^R\n", client.LastErr)
|
serverStatus = colour.Sprintf("^D^1%v^R\n", client.LastErr)
|
||||||
if client.Connected() {
|
if client.Connected() && client.LastErr == nil {
|
||||||
serverStatus = colour.Sprintf("^D^2connected to %s^R\n", client.Server)
|
serverStatus = colour.Sprintf("^D^2connected to %s^R\n", client.Server)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue