summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/MatrixClient.cc2
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"));
}