Don't ignore history init errors
This commit is contained in:
parent
15e1d3f87c
commit
8e33beeee7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user