[Issue#] Unhandled return value.
[Bug] N/A
[Cause] N/A
[Solution] Logging on error.
[Verification] Build installer
Change-Id: Ic2609d79d9c82039e94a899fccec5539712fe1c9
#include <sstream>
#include <ace_api_install.h>
#include <ace_registration.h>
+#include <errno.h>
+#include <string.h>
using namespace WrtDB;
#include <dpl/utils/wrt_utility.h>
#include <ail.h>
#include <pkgmgr/pkgmgr_parser.h>
+#include <errno.h>
+#include <string.h>
namespace Jobs {
namespace WidgetUninstall {
if(WrtUtilFileExists(*path))
{
LogDebug(" -> " << *path);
- remove(path->c_str());
+ int ret = remove(path->c_str());
+ if (ret != 0) {
+ LogDebug("Failed to remove the file: " << path->c_str() << " with error: " << strerror(errno));
+ }
}
else if(WrtUtilDirExists(*path))
{