Use std::exception for the login response

remotes/origin/HEAD
Konstantinos Sideris 7 years ago
parent 914bdecc0b
commit 3ea2053b25
  1. 2
      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"));
}

Loading…
Cancel
Save