From: Jan Olszak Date: Tue, 20 Nov 2012 07:13:10 +0000 (+0100) Subject: [Prevent] Handle return value. X-Git-Tag: accepted/tizen_2.1/20130425.023916~20^2~24^2~71^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5558edf19e98ee3545271465b258ea4201a5830;p=framework%2Fweb%2Fwrt-installer.git [Prevent] Handle return value. [Issue#] Unhandled return value. [Bug] N/A [Cause] N/A [Solution] Logging on error. [Verification] Build installer Change-Id: I402f083cfd1dccc557a671ac621a6c746572ff62 --- diff --git a/src/misc/widget_location.cpp b/src/misc/widget_location.cpp index b899bec..fbf458f 100644 --- a/src/misc/widget_location.cpp +++ b/src/misc/widget_location.cpp @@ -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