We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905e94d commit 27e049cCopy full SHA for 27e049c
src/sessions.ts
@@ -419,14 +419,14 @@ export class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
419
* Commits the currently active transaction in this session.
420
*/
421
async commitTransaction(): Promise<void> {
422
- return await endTransaction(this, 'commitTransaction');
+ return await endTransaction(this, 'commitTransaction').catch(e => squashError(e));
423
}
424
425
/**
426
* Aborts the currently active transaction in this session.
427
428
async abortTransaction(): Promise<void> {
429
- return await endTransaction(this, 'abortTransaction');
+ return await endTransaction(this, 'abortTransaction').catch(e => squashError(e));
430
431
432
0 commit comments