Jelajahi Sumber

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

ashilkn 1 tahun lalu
induk
melakukan
a79d11c263
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      mobile/lib/db/files_db.dart

+ 3 - 1
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)",
+      );
     }
   }