From fd4eca3e5c96b9aa5ff6ed00214fccd03780376f Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Sat, 27 Jun 2020 18:08:28 +0000 Subject: [PATCH] error handling --- zkclient/zkclient.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zkclient/zkclient.go b/zkclient/zkclient.go index 86139f0..f89c558 100644 --- a/zkclient/zkclient.go +++ b/zkclient/zkclient.go @@ -994,6 +994,9 @@ func (z *ZKC) goOnlineAndPrint() error { default: err = z.welcomeUser(welcome) } + if err != nil { + return err + } for _, group := range z.settings.OpenGroups { _, _, err = z.groupConversation(group) @@ -1004,7 +1007,7 @@ func (z *ZKC) goOnlineAndPrint() error { go z.handleRPC() - return err + return nil } func (z *ZKC) goOnlineRetry() {