瀏覽代碼

bubble up exception during convert/caching phase

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

+ 4 - 2
lib/utils/file_util.dart

@@ -213,7 +213,8 @@ Future<_LivePhoto> _downloadLivePhoto(ente.File file,
     }
     return _LivePhoto(imageFileCache, videoFileCache);
   }).catchError((e) {
-    _logger.warning("failed to download live photos" + e.toString());
+    _logger.warning(
+        "failed to download live photos : ${file.tag()}", e);
     throw e;
   });
 }
@@ -247,7 +248,8 @@ Future<io.File> _downloadAndCache(ente.File file, BaseCacheManager cacheManager,
     await outputFile.delete();
     return cachedFile;
   }).catchError((e) {
-    _logger.warning(e, "failed to download file");
+    _logger.warning("failed to download file : ${file.tag()}", e);
+    throw e;
   });
 }