aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-01-27 14:48:08 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:26:34 +0200
commitcb841e34cd200827c45c55afb537255865531026 (patch)
tree087e4d43e5e15a65856c80511446f33a43d718f6 /src
parentd99d624d3179396a5601358c6291954337d3688e (diff)
Rethrow exception instead of copy
Diffstat (limited to 'src')
-rw-r--r--src/DatabaseStorage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DatabaseStorage.cpp b/src/DatabaseStorage.cpp
index 1d6f201..5b9fb04 100644
--- a/src/DatabaseStorage.cpp
+++ b/src/DatabaseStorage.cpp
@@ -84,7 +84,7 @@ namespace odhtdb
catch(DatabaseStorageException &e)
{
cleanup();
- throw e;
+ throw;
}
}
@@ -1232,7 +1232,7 @@ namespace odhtdb
Log::error("Failed to decrypt data. Nonce: (data: %s, size: %u), dataToDecrypt: (data: %s, size: %u)",
bin2hex((const char*)nonce, ENCRYPTION_NONCE_BYTE_SIZE).c_str(), ENCRYPTION_NONCE_BYTE_SIZE,
bin2hex((const char*)dataToDecrypt.data, dataToDecrypt.size).c_str(), dataToDecrypt.size);
- throw e;
+ throw;
}
return true;
}