diff --git a/cmd/client/view.go b/cmd/client/view.go index 884ea00..0e7d9b9 100644 --- a/cmd/client/view.go +++ b/cmd/client/view.go @@ -22,8 +22,8 @@ func (a app) View() string { desktopNotifications(a.pomodoro) } - serverStatus = colour.Sprintf("^D^1disconnected: %v^R\n", client.LastErr) - if client.Connected() { + serverStatus = colour.Sprintf("^D^1%v^R\n", client.LastErr) + if client.Connected() && client.LastErr == nil { serverStatus = colour.Sprintf("^D^2connected to %s^R\n", client.Server) }