diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-03 02:50:46 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-03 02:50:46 +0200 |
commit | 3ea2053b25983d10651199658d3cfc112e33128a (patch) | |
tree | 8e46c06c9e4aeb35029bab24b04e8da9c9066f6e /src | |
parent | 914bdecc0b8e57a3b4e75b218b02909172ada7e3 (diff) |
Use std::exception for the login response
Diffstat (limited to 'src')
-rw-r--r-- | src/MatrixClient.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 1887eb95..e4dcb554 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -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")); } |