Skip to content

Commit 7b1145f

Browse files
Eliran Eretz-KedoshaEliran Eretz-Kedosha
authored andcommitted
fixing uts
1 parent 80f458d commit 7b1145f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/IndexedDbProvider.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,10 @@ export class IndexedDbTransaction implements DbTransaction {
784784
if (history.length > 1) {
785785
this.logWriter.warn(
786786
"IndexedDbTransaction Errored after Resolution, Swallowing. Error: " +
787-
errorDetail +
787+
(this._trans.error ? this._trans.error.message : undefined) +
788+
(this._trans.error?.name !== undefined
789+
? ", ErrorName: " + this._trans.error.name
790+
: "") +
788791
", History: " +
789792
history.join(",")
790793
);
@@ -811,7 +814,10 @@ export class IndexedDbTransaction implements DbTransaction {
811814
if (history.length > 1) {
812815
this.logWriter.warn(
813816
"IndexedDbTransaction Aborted after Resolution, Swallowing. Error: " +
814-
errorDetail +
817+
(this._trans.error ? this._trans.error.message : undefined) +
818+
(this._trans.error?.name !== undefined
819+
? ", ErrorName: " + this._trans.error.name
820+
: "") +
815821
", History: " +
816822
history.join(",")
817823
);

0 commit comments

Comments
 (0)