Improve login view and add .well-known resolution

This commit is contained in:
Tulir Asokan
2020-02-20 00:25:16 +02:00
parent b6e20af056
commit 8a0a3a6487
4 changed files with 50 additions and 24 deletions

View File

@ -89,7 +89,7 @@ func (log mxLogger) Debugfln(message string, args ...interface{}) {
// InitClient initializes the mautrix client and connects to the homeserver specified in the config.
func (c *Container) InitClient() error {
if len(c.config.HS) == 0 {
return fmt.Errorf("no homeserver in config")
return fmt.Errorf("no homeserver entered")
}
if c.client != nil {