From 716be466e098790c77070286a294d6ade0919b9e Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 1 May 2024 17:32:27 +0300 Subject: [PATCH] Add errors --- tui/channel_errors.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tui/channel_errors.go b/tui/channel_errors.go index 01159d0..1f6b449 100644 --- a/tui/channel_errors.go +++ b/tui/channel_errors.go @@ -1,6 +1,10 @@ package tui -import "git.qowevisa.me/Qowevisa/gotell/errors" +import ( + "log" + + "git.qowevisa.me/Qowevisa/gotell/errors" +) func (t *TUI) launchErrorsChannel() error { if t.errorsChannel == nil { @@ -9,6 +13,7 @@ func (t *TUI) launchErrorsChannel() error { go func() { for err := range t.errorsChannel { if err != nil { + log.Printf("ERROR: %#v\n", err) t.createNotification(err.Error(), CONST_ERROR_N_TITLE) } }