From 211d0c1b96c13f949f50799f5a4412ae31586546 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 24 May 2021 00:40:30 +0200 Subject: Uncomment some stuff --- lib/crypto/qolmsession.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/crypto') diff --git a/lib/crypto/qolmsession.cpp b/lib/crypto/qolmsession.cpp index a1f6ab71..2068a7d9 100644 --- a/lib/crypto/qolmsession.cpp +++ b/lib/crypto/qolmsession.cpp @@ -30,8 +30,7 @@ OlmSession* QOlmSession::create() std::variant, QOlmError> QOlmSession::createInbound(QOlmAccount *account, const QOlmMessage &preKeyMessage, bool from, const QString &theirIdentityKey) { if (preKeyMessage.type() != QOlmMessage::PreKey) { - qCDebug(E2EE) << "The message is not a pre-key"; - throw BadMessageFormat; + qCCritical(E2EE) << "The message is not a pre-key in when creating inbound session" << BadMessageFormat; } const auto olmSession = create(); @@ -48,7 +47,7 @@ std::variant, QOlmError> QOlmSession::createInbound if (error == olm_error()) { const auto lastErr = lastError(olmSession); if (lastErr == QOlmError::NotEnoughRandom) { - throw lastErr; + qCCritical(E2EE) << "Error when creating inbound session" << lastErr; } return lastErr; } -- cgit v1.2.3