Skip to content

Commit

Permalink
fix log spew. #240
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed Jun 19, 2023
1 parent d6c6115 commit 9218cbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/packages/crsqlite-wasm/src/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ export function serialize(

if (key) {
cache?.set(key, res);
// this catch doesn't swallow, the exception still makes it to the user
// of res as we return res not the caught variation of res.
res
.finally(() => cache?.delete(key))
.catch((e) => {
console.error(e);
// this catch doesn't swallow, the exception still makes it to the user
// of res as we return res rather than the caught variation of res.
});
}

Expand Down

0 comments on commit 9218cbb

Please sign in to comment.