aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-05-24 00:40:30 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:36:56 +0100
commit211d0c1b96c13f949f50799f5a4412ae31586546 (patch)
treeab15f3099452103d344c13a4c139514eff3027fa /lib/crypto
parent1186c9fc980f9659191df4b3f5b540befe946dfa (diff)
downloadlibquotient-211d0c1b96c13f949f50799f5a4412ae31586546.tar.gz
libquotient-211d0c1b96c13f949f50799f5a4412ae31586546.zip
Uncomment some stuff
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/qolmsession.cpp5
1 files changed, 2 insertions, 3 deletions
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<std::unique_ptr<QOlmSession>, 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<std::unique_ptr<QOlmSession>, 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;
}