From a52c7231b633030798059a16a13916815c030e93 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Mon, 19 May 2025 12:26:45 +0200 Subject: [PATCH] add more descriptive error message --- tui.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tui.go b/tui.go index d46b2dd..123975a 100644 --- a/tui.go +++ b/tui.go @@ -48,9 +48,14 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil case TickMsg: if m.progress.Percent() == 1.0 { - cmd := exec.Command("terminal-notifier", "-title", "Timer Complete", "-message", m.name, "-sound", "Crystal") + + cmd := exec.Command("terminal-notifier", + "-title", "Timer Complete", + "-message", m.name, + "-ignoreDnD", + ) if err := cmd.Run(); err != nil { - log.Fatal(err) + log.Printf("error sending notification: %v", err) } return m, tea.Quit }