[Verification] TCT results 100%
Change-Id: I3121295de6b8c4ba01d8eb1f0362b2b1dce21aae
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
// 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));
break;
default:
LoggerE("Not supported message type");
+ return LogAndCreateResult(
+ ErrorCode::INVALID_VALUES_ERR, "Not supported message type");
break;
}