diff --git a/src/rln_contract.ts b/src/rln_contract.ts index 8ea3011..9e24035 100644 --- a/src/rln_contract.ts +++ b/src/rln_contract.ts @@ -197,7 +197,8 @@ function* takeN(array: T[], size: number): Iterable { } function ignoreErrors(promise: Promise, defaultValue: T): Promise { - return promise.catch((_) => { + return promise.catch((err) => { + console.error(`Ignoring an error during query: ${err?.message}`); return defaultValue; }); }