Fix : Search APIs don't return exception despite the content in DB doesn't match...
[platform/framework/native/content.git] / src / FCntImageContentInfo.cpp
index 5d6994f..0e4ff3b 100644 (file)
@@ -54,7 +54,7 @@ ImageContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pImageContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pImageContentInfoImpl->Construct(contentPath, thumbnailPath, setGps);
-       SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryCatch(NID_CNT, r == E_SUCCESS || r == E_FILE_NOT_FOUND, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        _ContentInfoHelper::SetContentInfoImpl(this, pImageContentInfoImpl);