chore: expose upload errors to UI (#25566)

This commit is contained in:
Alex
2026-01-27 10:33:44 -06:00
committed by GitHub
parent 212c03ceff
commit 44b4f35019
5 changed files with 34 additions and 1 deletions
@@ -260,6 +260,7 @@ class BackgroundUploadService {
Future<UploadTask?> getUploadTask(LocalAsset asset, {String group = kBackupGroup, int? priority}) async {
final entity = await _storageRepository.getAssetEntityForAsset(asset);
if (entity == null) {
_logger.warning("Asset entity not found for ${asset.id} - ${asset.name}");
return null;
}
@@ -282,6 +283,7 @@ class BackgroundUploadService {
}
if (file == null) {
_logger.warning("Failed to get file for asset ${asset.id} - ${asset.name}");
return null;
}