From 46f46d15269abaf074f9c5de0142d7aff9572354 Mon Sep 17 00:00:00 2001 From: s414kim Date: Fri, 22 Sep 2017 14:03:03 +0900 Subject: [PATCH] Remove exception of findDevPath for emulator - Cause : the mount path doesn't exist on the emulator. Change-Id: Ibc219808d2fb3a3951e5f77392ab8d86bf29fe42 Signed-off-by: s414kim --- server/internal-encryption.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/internal-encryption.cpp b/server/internal-encryption.cpp index cc5caea..a873a17 100644 --- a/server/internal-encryption.cpp +++ b/server/internal-encryption.cpp @@ -92,7 +92,8 @@ std::string findDevPath() char *dev = ::realpath(source.c_str(), NULL); if (dev == NULL) { - throw runtime::Exception("Failed to find device path."); + ERROR(SINK, "failed to get device path"); + return ""; } std::string devPath(dev); -- 2.7.4