Use std::exception for the login response
This commit is contained in:
parent
914bdecc0b
commit
3ea2053b25
@ -111,7 +111,7 @@ MatrixClient::login(const QString &username, const QString &password) noexcept
|
||||
emit loginSuccess(QString::fromStdString(login.user_id.toString()),
|
||||
hostname,
|
||||
QString::fromStdString(login.access_token));
|
||||
} catch (DeserializationException &e) {
|
||||
} catch (std::exception &e) {
|
||||
qWarning() << "Malformed JSON response" << e.what();
|
||||
emit loginError(tr("Malformed response. Possibly not a Matrix server"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user