Skip to content

Commit 105b155

Browse files
schmopLars Richard
authored andcommitted
Catch promise errors in degradable (fixes #2384) (#2385)
Co-authored-by: Lars Richard <[email protected]> (cherry picked from commit 81d884f)
1 parent ba371f7 commit 105b155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/indexeddb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class IndexedDBStore extends MemoryStore {
297297

298298
return async (...args) => {
299299
try {
300-
return func.call(this, ...args);
300+
return await func.call(this, ...args);
301301
} catch (e) {
302302
logger.error("IndexedDBStore failure, degrading to MemoryStore", e);
303303
this.emitter.emit("degraded", e);

0 commit comments

Comments
 (0)