Print warning message when download size is zero 36/301936/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 28 Nov 2023 02:44:48 +0000 (11:44 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 28 Nov 2023 02:44:48 +0000 (11:44 +0900)
Change-Id: If65c03869d5cf841682af60d8a3c3cd9024b3656
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/file-download.cpp

index 47efd49..bd3a780 100644 (file)
@@ -353,6 +353,10 @@ bool DownloadFile(CURL*                  curlHandle,
   {
     return false;
   }
+  else if(DALI_UNLIKELY(dataSize == 0u))
+  {
+    DALI_LOG_WARNING("Warning : Download data size is 0! url : %s\n", url.c_str());
+  }
   return true;
 }