Skip to content

Commit

Permalink
Catch promise errors in degradable (fixes #2384) (#2385)
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Richard <[email protected]>
  • Loading branch information
schmop and Lars Richard authored May 19, 2022
1 parent 2dccefb commit 81d884f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/indexeddb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class IndexedDBStore extends MemoryStore {

return async (...args) => {
try {
return func.call(this, ...args);
return await func.call(this, ...args);
} catch (e) {
logger.error("IndexedDBStore failure, degrading to MemoryStore", e);
this.emitter.emit("degraded", e);
Expand Down

0 comments on commit 81d884f

Please sign in to comment.