Revert "Just for testing, let importing the db always fail - .context() just overwrites the underlying error!!!!!"

This reverts commit 27e53ddbff.
This commit is contained in:
Hocuri
2020-09-16 15:05:05 +02:00
parent 27e53ddbff
commit e870b33e03
2 changed files with 2 additions and 11 deletions

View File

@@ -569,9 +569,9 @@ async fn import_backup_old(context: &Context, backup_to_import: impl AsRef<Path>
/* re-open copied database file */
context
.sql
.openh(&context, &context.get_dbfile(), false)
.open(&context, &context.get_dbfile(), false)
.await
.context("that's just the context")?;
.context("Could not re-open db")?;
delete_and_reset_all_device_msgs(&context).await?;