mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Don't ignore history init errors
This commit is contained in:
parent
15e1d3f87c
commit
8e33beeee7
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue