This commit is contained in:
Povilas Kanapickas 2024-11-18 23:43:19 +01:00 committed by GitHub
commit 4c88f01c79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,17 +115,16 @@ LoginPage::onMatrixIdEntered()
} }
if (!err->parse_error.empty()) { if (!err->parse_error.empty()) {
emit versionErrorCb(tr("Autodiscovery failed. Received malformed response."));
nhlog::net()->error("Autodiscovery failed. Received malformed response. {}", nhlog::net()->error("Autodiscovery failed. Received malformed response. {}",
err->parse_error); err->parse_error);
checkHomeserverVersion();
return; return;
} }
emit versionErrorCb(tr("Autodiscovery failed. Unknown error when "
"requesting .well-known."));
nhlog::net()->error("Autodiscovery failed. Unknown error when " nhlog::net()->error("Autodiscovery failed. Unknown error when "
"requesting .well-known. {}", "requesting .well-known. {}",
*err); *err);
checkHomeserverVersion();
return; return;
} }