fix: more verbose errors in backups (#2196)

* fix: more verbose errors in backups

* show user friendly error, but prompt to send the full logs [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
cyan 2025-04-19 01:13:07 +02:00 committed by GitHub
parent ffe1c115fa
commit 53efdced68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
state = FailureState('This is not a valid backup file, please make sure you selected the correct backup file');
} else {
state = FailureState('Failed to restore backup, please try again');
ExceptionHandler.onError(FlutterErrorDetails(exception: e, stack: s, silent: true));
ExceptionHandler.onError(FlutterErrorDetails(exception: e, stack: s));
}
}