From f0fb6a31370024f7bd4a711856f9af21e6e322c4 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 11 Feb 2025 09:21:46 +0300 Subject: Fix: /v1 chat endpoint; linter --- tables.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tables.go') diff --git a/tables.go b/tables.go index 35a2e60..b520cd9 100644 --- a/tables.go +++ b/tables.go @@ -109,7 +109,9 @@ func makeChatTable(chatMap map[string]models.Chat) *tview.Table { if !ok { logger.Warn("no such card", "agent", agentName) //no:lint - notifyUser("error", "no such card: "+agentName) + if err := notifyUser("error", "no such card: "+agentName); err != nil { + logger.Warn("failed ot notify", "error", err) + } } if err := pngmeta.WriteToPng(cc.ToSpec(cfg.UserRole), cc.FilePath, cc.FilePath); err != nil { logger.Error("failed to write charcard", -- cgit v1.2.3