From 4c920880da47f771ad695e980f5bae807c1ac4e9 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 13 May 2023 17:44:42 +0200 Subject: Rework error management Error handling was not consistent and quite bad to be honest ... --- limox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'limox.go') diff --git a/limox.go b/limox.go index 98652cb..89a5916 100644 --- a/limox.go +++ b/limox.go @@ -72,10 +72,10 @@ func (l *Limox) run() error { case XmppConnect: l.State = Connected default: - log.Fatalf("Unknown XmppEvent '%d'\n", ev) + log.Printf("Unknown XmppEvent '%d'\n", ev) } default: - log.Fatalf("Unknown event type '%s'.\n", reflect.TypeOf(ev)) + log.Printf("Unknown event type '%s'.\n", reflect.TypeOf(ev)) } l.Window.Invalidate() } -- cgit v1.2.3-70-g09d2