summaryrefslogtreecommitdiff
path: root/tables.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-11 09:21:46 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-11 09:21:46 +0300
commitf0fb6a31370024f7bd4a711856f9af21e6e322c4 (patch)
tree33f1ff6a4c4bba6a5efc3b4ffb37baaf2c23b1d4 /tables.go
parent54680539085d354ac9473fa451e284963e12000a (diff)
Fix: /v1 chat endpoint; linter
Diffstat (limited to 'tables.go')
-rw-r--r--tables.go4
1 files changed, 3 insertions, 1 deletions
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",