From cb841e34cd200827c45c55afb537255865531026 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Jan 2019 14:48:08 +0100 Subject: Rethrow exception instead of copy --- src/DatabaseStorage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3