π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Try catch log on transaction
laurenspriem71dab9b5ac7f
diff --git a/mobile/lib/db/ml/db.dart b/mobile/lib/db/ml/db.dartindex 0748a20f98..90f31d83ae 100644--- a/mobile/lib/db/ml/db.dart+++ b/mobile/lib/db/ml/db.dart@@ -592,14 +592,24 @@ class MLDataDB {final db = await instance.asyncDB;await db.writeTransaction((tx) async {- await tx.execute(- 'DELETE FROM $clusterPersonTable WHERE $personIdColumn = ?',- [personID],- );- await tx.execute(- 'DELETE FROM $notPersonFeedback WHERE $personIdColumn = ?',- [personID],- );+ try {+ await tx.execute(+ 'DELETE FROM $clusterPersonTable WHERE $personIdColumn = ?',+ [personID],+ );+ } catch (e) {+ _logger.severe('Error in the first write of removePerson', e);+ rethrow;+ }+ try {+ await tx.execute(+ 'DELETE FROM $notPersonFeedback WHERE $personIdColumn = ?',+ [personID],+ );+ } catch (e) {+ _logger.severe('Error in the second write of removePerson', e);+ rethrow;+ }});}