summary refs log tree commit diff
path: root/src/LoginPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/LoginPage.cpp')
-rw-r--r--src/LoginPage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp

index 0108a9f4..c914d66f 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp
@@ -420,8 +420,11 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod) : deviceName_->text().toStdString(), [this](const mtx::responses::Login &res, mtx::http::RequestErr err) { if (err) { - showErrorMessage(error_label_, - QString::fromStdString(err->matrix_error.error)); + auto error = err->matrix_error.error; + if (error.empty()) + error = err->parse_error; + + showErrorMessage(error_label_, QString::fromStdString(error)); emit errorOccurred(); return; }