forked from firka/firka
debug: update throw exception
use a nested isar txn, which can trigger the error popup
This commit is contained in:
@@ -130,8 +130,10 @@ class _DebugScreen extends FirkaState<DebugScreen> {
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
throw 0 / 0;
|
||||
onPressed: () async {
|
||||
await widget.data.isar.writeTxn(() async {
|
||||
await widget.data.isar.writeTxn(() async {});
|
||||
});
|
||||
},
|
||||
child: const Text('Throw Exception'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user