From 45faae6b6ec5a19de4f396fcb16c80f87365de11 Mon Sep 17 00:00:00 2001 From: weboko Date: Fri, 28 Apr 2023 01:06:27 +0200 Subject: [PATCH] add error log --- src/rln_contract.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }); }