Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 958e18d

Browse files
committed
fix(database/rawTransaction): don't error on transaction failure
This was a compatibility-breaking change.
1 parent 03e2a9d commit 958e18d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/database/rawTransaction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ export const rawTransaction = async (
5656
await connection.rollback().catch(() => {});
5757

5858
const transactionErrorMessage = err.sql || transactionError(transactions, parameters);
59+
const msg = `${invokingResource} was unable to complete a transaction!\n${transactionErrorMessage}\n${err.message}`;
5960

60-
printError(invokingResource, cb, isPromise, transactionErrorMessage, err.message);
61+
console.error(msg);
6162

6263
TriggerEvent('oxmysql:transaction-error', {
6364
query: transactionErrorMessage,

0 commit comments

Comments
 (0)