Print error log when opt.zip not found 88/267088/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 25 Nov 2021 06:37:54 +0000 (15:37 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 25 Nov 2021 06:37:54 +0000 (15:37 +0900)
Change-Id: Ic51973255bdea286895ee08020784cf18a7bae7f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/pkg_upgrade/src/pkg_finder.cc

index 02e541cd54875f26d6e86ca69e800f094d51005a..85b25c6612e8b76129056adef8ceb0990ad86b12 100644 (file)
@@ -63,8 +63,10 @@ PkgFinder::PkgFinder() {
   manifest_dir_ = USR_MANIFEST_DIRECTORY;
   preload_rw_list_path_ = PRELOAD_RW_LIST_FILE;
 
-  if (access(kOptZipFile, F_OK) != 0)
+  if (access(kOptZipFile, F_OK) != 0) {
+    LOG(ERROR) << kOptZipFile << " does not exist";
     return;
+  }
 
   if (UnzipFileOnlyToPath(ALL_PRELOAD_RW_PKG_LIST, PKGMGR_FOTA_PATH) != 0) {
       LOG(ERROR) << "Failed to unzip file from backup";