[Messaging] SVACE issues resolved
authorPiotr Kosko <p.kosko@samsung.com>
Fri, 18 Mar 2016 13:29:42 +0000 (14:29 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Fri, 18 Mar 2016 13:29:56 +0000 (14:29 +0100)
[Verification] TCT results 100%

Change-Id: I3121295de6b8c4ba01d8eb1f0362b2b1dce21aae
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/messaging/message.cc
src/messaging/messaging_util.cc

index d438dbcbea596ff544c8f379d590831946264a03..196bf07826780d1bb01766fa9dcaddbe30951c39 100755 (executable)
@@ -793,7 +793,6 @@ PlatformResult Message::addMMSBodyAndAttachmentsToStruct(const AttachmentPtrVect
                 // check if file exists
                 struct stat st = {0};
                 if (stat(const_cast<char*>(filepath.c_str()), &st)) {
-                    LoggerE("Stat error: %d (%s)", errno, strerror(errno));
                     return LogAndCreateResult(ErrorCode::UNKNOWN_ERR,
                                     "Attachment file not found",
                                     ("att[%d]: attachment file not found", i));
index 31e037dd501eb5ecd3c5016bdf508ab80a35343c..f6a3c7a551f1b80d4f0b2f43a0ec9406b6d4aae5 100755 (executable)
@@ -761,6 +761,8 @@ PlatformResult MessagingUtil::jsonToMessage(const picojson::value& json,
         break;
     default:
         LoggerE("Not supported message type");
+        return LogAndCreateResult(
+            ErrorCode::INVALID_VALUES_ERR, "Not supported message type");
         break;
     }