diff options
-rw-r--r-- | ui/view-login.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/view-login.go b/ui/view-login.go index 023aaad..00b473d 100644 --- a/ui/view-login.go +++ b/ui/view-login.go @@ -118,7 +118,11 @@ func (view *LoginView) actuallyLogin(hs, mxid, password string) { 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) + view.Error(err.Error()) + return + } err = view.matrix.Login(mxid, password) if err != nil { if httpErr, ok := err.(mautrix.HTTPError); ok { |