From 4d17210164217ca25bf2c0218c21675207617e3c Mon Sep 17 00:00:00 2001 From: Sungbae Yoo Date: Mon, 1 Oct 2018 12:08:46 +0900 Subject: [PATCH] Fix catches in volume manager to get all exceptions Change-Id: I1400f534195a3688451e0eff667840d911d41e90 Signed-off-by: Sungbae Yoo --- volume/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volume/main.cpp b/volume/main.cpp index a05625e..a2fa0db 100755 --- a/volume/main.cpp +++ b/volume/main.cpp @@ -48,7 +48,7 @@ int generateKey(const std::string& keyName) std::string wrappedKey = KeyGenerator::wrapKey(pass, salt, ECRYPTFS_MAX_KEY_SIZE); KeyManager::addKey(keyName, wrappedKey); - } catch (runtime::Exception& e) { + } catch (std::exception& e) { ERROR(e.what()); return -1; } @@ -80,7 +80,7 @@ int mountEcryptfs(const std::string& src, const std::string& keyName) std::string key; try { key = KeyManager::getKey(keyName); - } catch (runtime::Exception& e) { + } catch (std::exception& e) { ERROR(e.what()); return -1; } -- 2.7.4