Skip to content

Commit

Permalink
fix(database/rawTransaction): don't error on transaction failure
Browse files Browse the repository at this point in the history
This was a compatibility-breaking change.
  • Loading branch information
thelindat committed Aug 8, 2023
1 parent 03e2a9d commit 958e18d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/database/rawTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export const rawTransaction = async (
await connection.rollback().catch(() => {});

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

printError(invokingResource, cb, isPromise, transactionErrorMessage, err.message);
console.error(msg);

TriggerEvent('oxmysql:transaction-error', {
query: transactionErrorMessage,
Expand Down

0 comments on commit 958e18d

Please sign in to comment.