diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-06 21:25:56 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-06 21:25:56 +0200 |
commit | f176af0f7ad14f86943c8b424817db3ab819e145 (patch) | |
tree | 445a83284d1ce58e7990b165b4790312f2edc013 /src | |
parent | docs: Update required Clang version and Ubuntu 14.04 instructions (#150) (diff) | |
download | nheko-f176af0f7ad14f86943c8b424817db3ab819e145.tar.xz |
Catch deserialization exceptions on initial /sync
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 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; } |