From 9218cbb9031483e3363afa7a6e4843e28a0adef7 Mon Sep 17 00:00:00 2001 From: Matt <1009003+tantaman@users.noreply.github.com> Date: Sun, 18 Jun 2023 18:37:29 -0400 Subject: [PATCH] fix log spew. #240 --- js/packages/crsqlite-wasm/src/serialize.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/packages/crsqlite-wasm/src/serialize.ts b/js/packages/crsqlite-wasm/src/serialize.ts index 886f10fbc..28faa0179 100644 --- a/js/packages/crsqlite-wasm/src/serialize.ts +++ b/js/packages/crsqlite-wasm/src/serialize.ts @@ -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. }); }