Update change log and spec for wrt-plugins-tizen_0.4.27
[framework/web/wrt-plugins-tizen.git] / src / Content / JSContentManager.cpp
index fd24299..adb4cd4 100755 (executable)
@@ -288,7 +288,7 @@ JSValueRef JSMediacontentManager::findItems(
         return JSWebAPIException::throwException(context,exception,err);
     }
     catch(...){
-        DeviceAPI::Common::UnknownException err("Unknown Error in ContentManager.getDirectories().");
+        DeviceAPI::Common::UnknownException err("Unknown Error in find().");
         return JSWebAPIException::throwException(context, exception, err);
     }
 
@@ -394,7 +394,7 @@ JSValueRef JSMediacontentManager::updateItemsBatch(JSContextRef context,
         return JSWebAPIException::throwException(context,exception,err);
     }
     catch(...){
-        DeviceAPI::Common::UnknownException err("Unknown Error in ContentManager.getDirectories().");
+        DeviceAPI::Common::UnknownException err("Unknown Error in updateBatch().");
         return JSWebAPIException::throwException(context, exception, err);
     }
 
@@ -558,7 +558,7 @@ static void _scanCompletedCallback(std::string err_msg, std::string path, void *
     if(cb != NULL){
             if(err_msg.empty() ){
                         Converter converter(cb->getContext());
-                        JSValueRef jsPath = converter.toJSValueRef(path);
+                        JSValueRef jsPath = converter.toJSValueRef(ContentUtility::convertPathToUri(path));
                         cb->callSuccessCallback(jsPath);
             }
             else{
@@ -617,7 +617,7 @@ JSValueRef JSMediacontentManager::scanFile(
         return JSWebAPIException::throwException(context,exception,err);
     }
     catch(...){
-        DeviceAPI::Common::UnknownException err("Unknown Error in ContentManager.getDirectories().");
+        DeviceAPI::Common::UnknownException err("Unknown Error in scanFile().");
         return JSWebAPIException::throwException(context, exception, err);
     }
 
@@ -691,7 +691,7 @@ JSValueRef JSMediacontentManager::setChangeListener(
         return JSWebAPIException::throwException(context,exception,err);
     }
     catch(...){
-        DeviceAPI::Common::UnknownException err("Unknown Error in ContentManager.getDirectories().");
+        DeviceAPI::Common::UnknownException err("Unknown Error in setChangeListener().");
         return JSWebAPIException::throwException(context, exception, err);
     }
 
@@ -729,7 +729,7 @@ JSValueRef JSMediacontentManager::unsetChangeListener(
         return JSWebAPIException::throwException(context,exception,err);
     }
     catch(...){
-        DeviceAPI::Common::UnknownException err("Unknown Error in ContentManager.getDirectories().");
+        DeviceAPI::Common::UnknownException err("Unknown Error in unsetChangeListener().");
         return JSWebAPIException::throwException(context, exception, err);
     }