summary refs log tree commit diff
path: root/src/LoginPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-07 05:26:12 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-07 05:27:06 +0100
commitac1d6782547223bbd58137cc84ea331477f2438d (patch)
tree19cb8e6334173bf8480c594a8149e452319cfa55 /src/LoginPage.cpp
parentUpdate translations (diff)
downloadnheko-ac1d6782547223bbd58137cc84ea331477f2438d.tar.xz
Fix server switching to https after bootstrap
fixes #878
Diffstat (limited to 'src/LoginPage.cpp')
-rw-r--r--src/LoginPage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp
index cdc2262f..6a83376c 100644
--- a/src/LoginPage.cpp
+++ b/src/LoginPage.cpp
@@ -163,6 +163,8 @@ LoginPage::checkHomeserverVersion()
                 return;
             }
 
+            nhlog::net()->error("Error requesting versions: {}", *err);
+
             emit versionErrorCb(
               tr("An unknown error occured. Make sure the homeserver domain is valid."));
             return;
@@ -276,7 +278,7 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
 
               if (res.well_known) {
                   http::client()->set_server(res.well_known->homeserver.base_url);
-                  nhlog::net()->info("Login requested to user server: " +
+                  nhlog::net()->info("Login requested to use server: " +
                                      res.well_known->homeserver.base_url);
               }
 
@@ -301,7 +303,7 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
 
                     if (res.well_known) {
                         http::client()->set_server(res.well_known->homeserver.base_url);
-                        nhlog::net()->info("Login requested to user server: " +
+                        nhlog::net()->info("Login requested to use server: " +
                                            res.well_known->homeserver.base_url);
                     }