Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Add more info in error message

ashilkna79d11c2636b
diff --git a/mobile/lib/db/files_db.dart b/mobile/lib/db/files_db.dart
index b7c67ff36c..c6ba617e0e 100644
--- a/mobile/lib/db/files_db.dart
+++ b/mobile/lib/db/files_db.dart
@@ -167,7 +167,9 @@ class FilesDB {
await tx.execute('PRAGMA user_version = $toVersion');
});
} else if (currentVersion > toVersion) {
- throw AssertionError("currentVersion cannot be greater than toVersion");
+ throw AssertionError(
+ "currentVersion($currentVersion) cannot be greater than toVersion($toVersion)",
+ );
}
}