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)
|
debug.Printf("Logging into %s as %s...", hs, mxid)
|
||||||
view.config.HS = hs
|
view.config.HS = hs
|
||||||
err := view.matrix.InitClient()
|
err := view.matrix.InitClient()
|
||||||
|
if err != nil {
|
||||||
debug.Print("Init error:", err)
|
debug.Print("Init error:", err)
|
||||||
|
view.Error(err.Error())
|
||||||
|
return
|
||||||
|
}
|
||||||
err = view.matrix.Login(mxid, password)
|
err = view.matrix.Login(mxid, password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if httpErr, ok := err.(mautrix.HTTPError); ok {
|
if httpErr, ok := err.(mautrix.HTTPError); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user