diff options
author | Aleksi Lindeman <dec05eba@protonmail.com> | 2019-01-27 14:48:08 +0100 |
---|---|---|
committer | Aleksi Lindeman <dec05eba@protonmail.com> | 2019-01-27 14:48:10 +0100 |
commit | e673a8de53278814a860e9eba03ef776be0a4169 (patch) | |
tree | 5b853763e3046657ffe55540cd98126cb6b7ff96 | |
parent | 70c67121522018db2733eb8e9e8fd8ddca867ecc (diff) |
Rethrow exception instead of copy
-rw-r--r-- | src/DatabaseStorage.cpp | 4 |
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; } |