Remove exception of findDevPath for emulator 04/151804/1 accepted/tizen/4.0/unified/20170922.064933 accepted/tizen/unified/20170922.065801 submit/tizen/20170922.051831 submit/tizen_4.0/20170922.051801 tizen_4.0.IoT.p1_release
authors414kim <s414.kim@samsung.com>
Fri, 22 Sep 2017 05:03:03 +0000 (14:03 +0900)
committers414kim <s414.kim@samsung.com>
Fri, 22 Sep 2017 05:03:03 +0000 (14:03 +0900)
- Cause : the mount path doesn't exist on the emulator.

Change-Id: Ibc219808d2fb3a3951e5f77392ab8d86bf29fe42
Signed-off-by: s414kim <s414.kim@samsung.com>
server/internal-encryption.cpp

index cc5caea..a873a17 100644 (file)
@@ -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);