Fix catches in volume manager to get all exceptions 15/190315/1 accepted/tizen/5.0/unified/20181102.021201 accepted/tizen/unified/20181001.150931 submit/tizen/20181001.080809 submit/tizen_5.0/20181101.000004
authorSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 1 Oct 2018 03:08:46 +0000 (12:08 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 1 Oct 2018 03:08:46 +0000 (12:08 +0900)
Change-Id: I1400f534195a3688451e0eff667840d911d41e90
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
volume/main.cpp

index a05625e..a2fa0db 100755 (executable)
@@ -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;
        }