From c6425ad7fff9efcdd8c3879dfff819f144b45fae Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 17 Jun 2024 18:15:42 -0300 Subject: [PATCH] fix(bolt11): print error --- src/utils/bolt11.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/bolt11.ts b/src/utils/bolt11.ts index 3e7db690..ba3dbe93 100644 --- a/src/utils/bolt11.ts +++ b/src/utils/bolt11.ts @@ -7,7 +7,8 @@ function getAmount(invoice: string | undefined): string | undefined { try { const decoded = bolt11.decode(invoice); return decoded?.millisatoshis ?? undefined; - } catch { + } catch (e) { + console.log(e); return; } }