From 112053f17c24e7d21940efa85f03313dbced5c66 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 27 Jun 2019 04:08:04 -0600 Subject: [PATCH] Only debuglog an init error if there is an error. --- ui/view-login.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/view-login.go b/ui/view-login.go index a65a77c..8c34b7d 100644 --- a/ui/view-login.go +++ b/ui/view-login.go @@ -120,7 +120,9 @@ func (view *LoginView) Login() { debug.Printf("Logging into %s as %s...", hs, mxid) view.config.HS = hs err := view.matrix.InitClient() - debug.Print("Init error:", err) + if err != nil { + debug.Print("Init error:", err) + } err = view.matrix.Login(mxid, password) if err != nil { if httpErr, ok := err.(mautrix.HTTPError); ok {