bubble up exception during convert/caching phase

This commit is contained in:
Neeraj Gupta 2021-10-04 14:15:19 +05:30
parent 701efe3e21
commit 2a2d1d568c
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -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;
});
}