summaryrefslogtreecommitdiff
path: root/internal/ui/history.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ui/history.go')
-rw-r--r--internal/ui/history.go4
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()