Skip to content

Commit

Permalink
chore(tray): Log errors in addition to showing in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 4, 2024
1 parent 6f289ad commit 4b5a067
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tray/systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (t *Tray) onReady() {
}
}
case error:
slog.Error("Displaying error", "error", msg.Error())
t.items.Error.SetTitle(msg.Error())
t.items.Error.Show()
case ReloadConfigMsg:
Expand All @@ -147,6 +148,7 @@ func (t *Tray) onError(err error) {
select {
case t.bus <- err:
default:
slog.Error("Unable to display error due to full bus", "error", err.Error())
}
}

Expand Down

0 comments on commit 4b5a067

Please sign in to comment.