Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Improve logging

Neeraj Guptaf08219c15101
diff --git a/mobile/apps/photos/lib/utils/file_download_util.dart b/mobile/apps/photos/lib/utils/file_download_util.dart
index c45dd3e530..d452106af6 100644
--- a/mobile/apps/photos/lib/utils/file_download_util.dart
+++ b/mobile/apps/photos/lib/utils/file_download_util.dart
@@ -271,7 +271,7 @@ Future<void> _saveLivePhotoOnDroid(
AssetEntity? savedAsset = await (PhotoManager.editor
.saveImageWithPath(image.path, title: enteFile.title!))
.catchError((err) {
- throw Exception("Failed to save image of live photo");
+ throw Exception("Failed to save image of live photo: $err");
});
IgnoredFile ignoreVideoFile = IgnoredFile(
savedAsset.id,
@@ -285,7 +285,12 @@ Future<void> _saveLivePhotoOnDroid(
savedAsset = (await (PhotoManager.editor.saveVideo(
video,
title: videoTitle,
- )).catchError((_) => throw Exception("Failed to save video of live photo")));
+ )).catchError(
+ (err) {
+ _logger.warning('Failed to save video $videoTitle of live photo');
+ throw Exception("Failed to save video of live photo: $err");
+ },
+ ));
ignoreVideoFile = IgnoredFile(
savedAsset.id,