mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Use std::exception for the login response
This commit is contained in:
parent
914bdecc0b
commit
3ea2053b25
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue