From: s414kim Date: Fri, 22 Sep 2017 05:03:03 +0000 (+0900) Subject: Remove exception of findDevPath for emulator X-Git-Tag: accepted/tizen/unified/20170922.065801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20170922.065801;p=platform%2Fcore%2Fsecurity%2Fode.git Remove exception of findDevPath for emulator - Cause : the mount path doesn't exist on the emulator. Change-Id: Ibc219808d2fb3a3951e5f77392ab8d86bf29fe42 Signed-off-by: s414kim --- 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);