[Prevent] Handle return value.
authorJan Olszak <j.olszak@samsung.com>
Tue, 20 Nov 2012 07:13:10 +0000 (08:13 +0100)
committerJan Olszak <j.olszak@samsung.com>
Tue, 20 Nov 2012 07:13:10 +0000 (08:13 +0100)
[Issue#] Unhandled return value.
[Bug] N/A
[Cause] N/A
[Solution] Logging on error.
[Verification] Build installer

Change-Id: I402f083cfd1dccc557a671ac621a6c746572ff62

src/misc/widget_location.cpp

index b899bec..fbf458f 100644 (file)
@@ -42,7 +42,9 @@ WidgetLocation::DirectoryDeletor::DirectoryDeletor(std::string tempPath)
 WidgetLocation::DirectoryDeletor::~DirectoryDeletor()
 {
     LogDebug("Removing widget installation temporary directory: " << m_dirpath.c_str());
-    WrtUtilRemove(m_dirpath);
+    if(!WrtUtilRemove(m_dirpath)){
+        LogDebug("Fail at removing directory: " << m_dirpath.c_str());
+    }
 }
 
 std::string WidgetLocation::DirectoryDeletor::getTempPath() const