We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b2923 commit bd63c82Copy full SHA for bd63c82
.changeset/rare-news-lie.md
@@ -0,0 +1,5 @@
1
+---
2
+'@journeyapps/react-native-quick-sqlite': patch
3
4
+
5
+Silencing transactions that are reporting on failed rollback exceptions when they are safe to ignore.
src/setup-open.ts
@@ -212,7 +212,12 @@ export function setupOpen(QuickSQLite: ISQLite) {
212
}
213
return res;
214
} catch (ex) {
215
- await rollback();
+ try {
216
+ await rollback();
217
+ } catch (ex2) {
218
+ // In rare cases, a rollback may fail.
219
+ // Safe to ignore.
220
+ }
221
throw ex;
222
223
};
0 commit comments