summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-06 21:25:56 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-06 21:25:56 +0200
commitf176af0f7ad14f86943c8b424817db3ab819e145 (patch)
tree445a83284d1ce58e7990b165b4790312f2edc013 /src
parentdocs: Update required Clang version and Ubuntu 14.04 instructions (#150) (diff)
downloadnheko-f176af0f7ad14f86943c8b424817db3ab819e145.tar.xz
Catch deserialization exceptions on initial /sync
Diffstat (limited to 'src')
-rw-r--r--src/MatrixClient.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc
index 8214cfc5..2878c4bb 100644
--- a/src/MatrixClient.cc
+++ b/src/MatrixClient.cc
@@ -359,7 +359,7 @@ MatrixClient::initialSync() noexcept
                 try {
                         mtx::responses::Sync response = nlohmann::json::parse(reply->readAll());
                         emit initialSyncCompleted(response);
-                } catch (DeserializationException &e) {
+                } catch (std::exception &e) {
                         qWarning() << "Sync malformed response" << e.what();
                         return;
                 }