Skip to content

Commit b0e572c

Browse files
committed
fix: unnecessary duplicate error parsing
1 parent 8df57b9 commit b0e572c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package/src/operations/transaction.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ export const transaction = (
3636
params?: SQLiteQueryParams,
3737
): QueryResult<Data> => {
3838
if (isFinalized) {
39-
throw NitroSQLiteError.fromError(
40-
new NitroSQLiteError(
41-
`Cannot execute query on finalized transaction: ${dbName}`,
42-
),
39+
throw new NitroSQLiteError(
40+
`Cannot execute query on finalized transaction: ${dbName}`,
4341
)
4442
}
4543
return execute(dbName, query, params)

0 commit comments

Comments
 (0)