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
@@ -149,6 +149,8 @@ class DriftBackupState {
);
}
int get errorCount => uploadItems.values.where((item) => item.isFailed == true).length;
@override
String toString() {
return 'DriftBackupState(totalCount: $totalCount, backupCount: $backupCount, remainderCount: $remainderCount, processingCount: $processingCount, isSyncing: $isSyncing, error: $error, uploadItems: $uploadItems, cancelToken: $cancelToken, iCloudDownloadProgress: $iCloudDownloadProgress)';