Don't ignore history init errors

This commit is contained in:
Tulir Asokan 2020-02-19 22:12:12 +02:00
parent 15e1d3f87c
commit 8e33beeee7

View File

@ -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 {