瀏覽代碼

add subType in error log for live photo video fetch failure

Neeraj Gupta 3 年之前
父節點
當前提交
1ea3975ce9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/utils/file_uploader_util.dart

+ 2 - 1
lib/utils/file_uploader_util.dart

@@ -74,7 +74,8 @@ Future<MediaUploadData> _getMediaUploadDataFromAssetFile(ente.File file) async {
   if (file.fileType == FileType.livePhoto && io.Platform.isIOS) {
     final io.File videoUrl = await Motionphoto.getLivePhotoFile(file.localID);
     if (videoUrl == null || !videoUrl.existsSync()) {
-      String errMsg = "missing livePhoto url for " + file.toString();
+      String errMsg = "missing livePhoto url for  ${file
+          .toString()} with subType ${file.fileSubType};
       _logger.severe(errMsg);
       throw InvalidFileUploadState(errMsg);
     }