cashubtc / cashu-ts

A TypeScript library for building Cashu wallets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CashuWallet.payLnInvoice rejects with unusable Error message

Egge21M opened this issue · comments

commented

The code snippet below yields [Error: [object Object]]

try {
  const response = await wallet.payLnInvoice(invoice, proofs, feeReserve);
} catch (e) {
  console.log(e);
}
commented

Could not find that code in the repo,

if you are looking to not get [object Object] printed you can use console.log(JSON.stringify(e));