opt: notify-debugger-on-exception (#1750)

This commit is contained in:
My-Responsitories
2025-11-17 21:49:36 +08:00
committed by GitHub
parent 76c2de4394
commit 0f8166620e
14 changed files with 37 additions and 74 deletions

View File

@@ -73,6 +73,7 @@ class DownloadService extends GetxService {
..sort((a, b) => b.timeUpdateStamp.compareTo(a.timeUpdateStamp));
}
@pragma('vm:notify-debugger-on-exception')
Future<List<BiliDownloadEntryInfo>> _readDownloadDirectory(
Directory pageDir,
) async {
@@ -95,9 +96,7 @@ class DownloadService extends GetxService {
if (!entry.isCompleted) {
waitDownloadQueue.add(entry..status = DownloadStatus.wait);
}
} catch (_) {
if (kDebugMode) rethrow;
}
} catch (_) {}
}
}
}