mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
Only debuglog an init error if there is an error.
This commit is contained in:
parent
37df8eb454
commit
112053f17c
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ func (view *LoginView) Login() {
|
|||
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)
|
||||
}
|
||||
err = view.matrix.Login(mxid, password)
|
||||
if err != nil {
|
||||
if httpErr, ok := err.(mautrix.HTTPError); ok {
|
||||
|
|
Loading…
Add table
Reference in a new issue