Fix : Search APIs don't return exception despite the content in DB doesn't match...
[platform/framework/native/content.git] / src / FCntVideoContentInfo.cpp
index 2223cb8..c2d5018 100644 (file)
@@ -55,7 +55,7 @@ VideoContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pVideoContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pVideoContentInfoImpl->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, pVideoContentInfoImpl);