Skip to content

Commit 5befa05

Browse files
committed
Use original error message
1 parent 82988c1 commit 5befa05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/sqlite_async/lib/src/web/worker/worker_utils.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ class AsyncSqliteDatabase extends WorkerDatabase {
8383
if (data.requireTransaction.toDart && database.autocommit) {
8484
throw SqliteException(
8585
extendedResultCode: 0,
86-
message: 'Not in a transaction',
86+
message:
87+
'Transaction rolled back by earlier statement. Cannot execute',
88+
causingStatement: data.rawSql.toDart,
8789
);
8890
}
8991

0 commit comments

Comments
 (0)