소스 검색

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

ashilkn 1 년 전
부모
커밋
a79d11c263
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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)",
+      );
     }
   }