diff options
| author | spiperac <[email protected]> | 2026-06-15 07:36:55 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-15 07:36:55 +0200 |
| commit | 963a54b2ca82f7b49d95a4c62bcc6c1a12949d62 (patch) | |
| tree | 4bf3a2d5e4cd278c11920785bdb242db83bd520f /internal/ui/history.go | |
| parent | 60ee90e98ff3edbc4629b1b448cdc62aec09365c (diff) | |
| parent | 3bdda3f2da2f00a0760e931ffe05630d46051a9b (diff) | |
Merge pull request #5 from spiperac/dev
fix: Fixed silent error swallowing
Diffstat (limited to 'internal/ui/history.go')
| -rw-r--r-- | internal/ui/history.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/ui/history.go b/internal/ui/history.go index 18ead77..6bf3645 100644 --- a/internal/ui/history.go +++ b/internal/ui/history.go @@ -545,6 +545,7 @@ func (h *historyTab) deleteSelectedHost() { } if err := h.projectStore.DeleteTransactionsByHostPort(host, port); err != nil { logger.Error("history: delete %s:%d: %v", host, port, err) + dialog.ShowError(err, h.win) return } h.siteMap.mu.Lock() @@ -822,6 +823,7 @@ func (h *historyTab) loadAnnotations() { func (h *historyTab) clearHistory() { if err := h.projectStore.ClearHistory(); err != nil { logger.Error("clear history: %v", err) + dialog.ShowError(err, h.win) return } h.mu.Lock() @@ -1226,6 +1228,7 @@ func (h *historyTab) showCommentDialog(historyID uint64) { a.Comment = entry.Text if err := h.projectStore.SetAnnotation(a); err != nil { logger.Error("history: set annotation comment: %v", err) + dialog.ShowError(err, h.win) return } h.annotationsMu.Lock() @@ -1263,6 +1266,7 @@ func (h *historyTab) showHighlightMenu(historyID uint64) { a.Color = hc.color if err := h.projectStore.SetAnnotation(a); err != nil { logger.Error("history: set annotation color: %v", err) + dialog.ShowError(err, h.win) return } h.annotationsMu.Lock() |
