fix: improve error handling for backup restoration

This commit is contained in:
Moustapha Kodjo Amadou 2025-11-25 16:51:29 +01:00
parent adcde15d0e
commit c2a1e5ee17

View file

@ -238,8 +238,10 @@ class DataAndStorage extends ConsumerWidget {
}
if (!context.mounted) return;
Navigator.pop(context);
} catch (_) {
botToast("Error");
} catch (e) {
botToast(
"Error restoring backup: $e",
);
Navigator.pop(context);
}
},