diff --git a/app/src/main/kotlin/com/wire/android/ui/home/settings/backup/BackupAndRestoreViewModel.kt b/app/src/main/kotlin/com/wire/android/ui/home/settings/backup/BackupAndRestoreViewModel.kt index c597f60e929..357a47fb1d5 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/settings/backup/BackupAndRestoreViewModel.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/settings/backup/BackupAndRestoreViewModel.kt @@ -212,7 +212,7 @@ class BackupAndRestoreViewModel restoreFileValidation = RestoreFileValidation.ValidNonEncryptedBackup, backupRestoreProgress = BackupRestoreProgress.InProgress(PROGRESS_75) ) - when (importBackup(importedBackupPath, null)) { + when (val result = importBackup(importedBackupPath, null)) { RestoreBackupResult.Success -> { updateCreationProgress(PROGRESS_75) delay(SMALL_DELAY) @@ -221,10 +221,7 @@ class BackupAndRestoreViewModel } is RestoreBackupResult.Failure -> { - appLogger.e( - "Error when restoring the db file. The format or version of the backup is not compatible with this " + - "version of the app" - ) + appLogger.e("Error when restoring the backup db file caused by: ${result.failure.cause}") state = state.copy( restoreFileValidation = RestoreFileValidation.IncompatibleBackup, backupRestoreProgress = BackupRestoreProgress.Failed diff --git a/kalium b/kalium index 77bf60957cd..f417fd46f63 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit 77bf60957cdc50e9b81d9327883adc2b93285472 +Subproject commit f417fd46f63b0e2c82faf4f86ed115718829f1c6