Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Better error logging

laurenspriem968eaaf5f6b8
diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart
index 6ce7e0609b..0112490a47 100644
--- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart
@@ -216,9 +216,14 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
trailingIcon: Icons.chevron_right_outlined,
trailingIconIsMuted: true,
onTap: () async {
- await FaceMLDataDB.instance.dropFeedbackTables();
- Bus.instance.fire(PeopleChangedEvent());
- showShortToast(context, "Done");
+ try {
+ await FaceMLDataDB.instance.dropFeedbackTables();
+ Bus.instance.fire(PeopleChangedEvent());
+ showShortToast(context, "Done");
+ } catch (e, s) {
+ _logger.warning('reset feedback failed ', e, s);
+ await showGenericErrorDialog(context: context, error: e);
+ }
},
),
sectionOptionSpacing,